Adjusts breakpoint for colony panel (window/fullscreen).

This commit is contained in:
Stian Grenborgen 2024-01-02 18:08:57 +01:00
parent 6d4f5032c6
commit 94bf55cd16
1 changed files with 1 additions and 2 deletions

View File

@ -438,13 +438,12 @@ public final class ColonyPanel extends PortPanel
SwingUtilities.replaceUIInputMap(this.nameBox,
JComponent.WHEN_IN_FOCUSED_WINDOW, nameIM);
if (getGUI().getMapViewDimension().height < getImageLibrary().scaleInt(700)) {
if (getGUI().getMapViewDimension().height < getImageLibrary().scaleInt(850)) {
/*
* TODO: Remove all borders and show the panel covering the
* entire screen (except for the menu bar.
*/
fullscreen = true;
setPreferredSize(getGUI().getMapViewDimension());
setBorder(BorderFactory.createEmptyBorder());
} else {
setBorder(FreeColImageBorder.innerColonyPanelBorder);