mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Altered the size of the deckviewer dialog window to be a proportion of screen size to make the most of the available space on higher res screens.
This commit is contained in:
@@ -118,8 +118,9 @@ public class FDeckViewer extends FDialog {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
final int width = 800;
|
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
|
||||||
final int height = 600;
|
final int width = (int)(screenSize.width * 0.8);
|
||||||
|
final int height = (int)(screenSize.height * 0.9);
|
||||||
this.setPreferredSize(new Dimension(width, height));
|
this.setPreferredSize(new Dimension(width, height));
|
||||||
this.setSize(width, height);
|
this.setSize(width, height);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user