mirror of https://github.com/FreeCol/freecol.git
Removes the shadow around the colony panel when playing on low resolution. This allows the buttons on the colony panel to be displayed properly when having only a 768px height window.
This commit is contained in:
parent
c05a99e246
commit
40cbdc4b81
|
@ -405,6 +405,14 @@ public final class ColonyPanel extends PortPanel
|
|||
SwingUtilities.replaceUIInputMap(this.nameBox,
|
||||
JComponent.WHEN_IN_FOCUSED_WINDOW, nameIM);
|
||||
|
||||
if (getGUI().getMapViewDimension().height < 770) {
|
||||
/*
|
||||
* Reduces the border size so that the Colony panel
|
||||
* can get slightly bigger.
|
||||
*/
|
||||
setBorder(FreeColImageBorder.panelWithoutShadowBorder);
|
||||
}
|
||||
|
||||
initialize(colony);
|
||||
getGUI().restoreSavedSize(this, new Dimension(1050, 725));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue