Skip to content

Commit

Permalink
Merge pull request #829 from david-hall/fix-shapes-list
Browse files Browse the repository at this point in the history
  • Loading branch information
vorth authored Mar 17, 2024
2 parents ac24f8d + 7c9176b commit d8dbdb2
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 d8dbdb2

Please sign in to comment.