File tree 1 file changed +3
-13
lines changed 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -288,19 +288,9 @@ public void windowDeactivated(WindowEvent e) {
288
288
setPlacement (location );
289
289
290
290
291
- // If the window is resized too small this will resize it again to the
292
- // minimums. Adapted by Chris Lonnen from comments here:
293
- // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4320050
294
- // as a fix for http://dev.processing.org/bugs/show_bug.cgi?id=25
295
- final int minW = Preferences .getInteger ("editor.window.width.min" );
296
- final int minH = Preferences .getInteger ("editor.window.height.min" );
297
- addComponentListener (new java .awt .event .ComponentAdapter () {
298
- public void componentResized (ComponentEvent event ) {
299
- setSize ((getWidth () < minW ) ? minW : getWidth (),
300
- (getHeight () < minH ) ? minH : getHeight ());
301
- }
302
- });
303
-
291
+ // Set the minimum size for the editor window
292
+ setMinimumSize (new Dimension (Preferences .getInteger ("editor.window.width.min" ),
293
+ Preferences .getInteger ("editor.window.height.min" )));
304
294
// System.out.println("t3");
305
295
306
296
// Bring back the general options for the editor
You can’t perform that action at this time.
0 commit comments