Fixes hidden OK-button on small screens.

This commit is contained in:
Stian Grenborgen 2023-06-10 21:40:41 +02:00
parent 15f70de737
commit 2591943d4d
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ public final class ColopediaPanel extends FreeColPanel
*/
public ColopediaPanel(FreeColClient freeColClient, String id) {
super(freeColClient, "ColopediaPanelUI",
new MigLayout("fill", "[750:, grow, fill]",
new MigLayout("fill", "[grow, fill]",
"[][grow, fill][]"));
add(Utility.localizedHeader("colopedia", Utility.FONTSPEC_TITLE),
@ -103,7 +103,7 @@ public final class ColopediaPanel extends FreeColPanel
detailPanel.setOpaque(true);
JScrollPane detail = new JScrollPane(detailPanel,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
detail.getVerticalScrollBar().setUnitIncrement(16);
detail.getViewport().setOpaque(false);