NonImageViewer: fix space issue
authorNiki Roo <niki@nikiroo.be>
Mon, 4 May 2020 08:11:10 +0000 (10:11 +0200)
committerNiki Roo <niki@nikiroo.be>
Mon, 4 May 2020 08:11:10 +0000 (10:11 +0200)
src/be/nikiroo/fanfix_swing/gui/viewer/ViewerNonImages.java

index 53175b13e597562cf58a9c44e065bea2b1dd0a00..9f128fe374df0ad9c49f8525fc6fb2d9bc4d030d 100644 (file)
@@ -2,6 +2,7 @@ package be.nikiroo.fanfix_swing.gui.viewer;
 
 import java.awt.BorderLayout;
 import java.awt.Color;
+import java.awt.Dimension;
 import java.awt.Font;
 import java.awt.Rectangle;
 import java.awt.event.ActionEvent;
@@ -131,6 +132,7 @@ public class ViewerNonImages extends JFrame {
                descPane.add(descLabel, BorderLayout.SOUTH);
 
                area.setSize(scroll.getViewport().getSize());
+               area.setPreferredSize(this.getSize()); // make it as big as possible
                area.requestFocus();
 
                this.add(toolbarTitle);