From 7c9176b0a8810a2593411e811aa5b454e8c33682 Mon Sep 17 00:00:00 2001 From: David Hall Date: Sun, 17 Mar 2024 02:26:53 -0400 Subject: [PATCH] Adjust Shapes dialog height to display all styles --- desktop/src/main/java/org/vorthmann/zome/ui/ShapesDialog.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop/src/main/java/org/vorthmann/zome/ui/ShapesDialog.java b/desktop/src/main/java/org/vorthmann/zome/ui/ShapesDialog.java index 8fe7dc076..6a9053b69 100644 --- a/desktop/src/main/java/org/vorthmann/zome/ui/ShapesDialog.java +++ b/desktop/src/main/java/org/vorthmann/zome/ui/ShapesDialog.java @@ -34,7 +34,8 @@ public ShapesDialog( Frame frame, Controller controller ) radioButton .addActionListener( new ControllerActionListener(controller) ); } - setSize( new Dimension( 250, 250 ) ); + // adjust height to fit all styles plus the title bar plus a bit extra at the bottom for good measure + setSize( new Dimension( 250, 66 + (styles.length * 24)) ); setLocationRelativeTo( frame ); }