Skip to content

Commit

Permalink
Adjust Shapes dialog height to display all styles
Browse files Browse the repository at this point in the history
  • Loading branch information
david-hall committed Mar 17, 2024
1 parent ac24f8d commit 7c9176b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 7c9176b

Please sign in to comment.