79
79
import java .util .zip .ZipFile ;
80
80
81
81
import static processing .app .I18n .tr ;
82
+ import static processing .app .Theme .scale ;
82
83
83
84
/**
84
85
* Main editor panel for the Processing Development Environment.
@@ -304,7 +305,6 @@ public void windowDeactivated(WindowEvent e) {
304
305
upper .add (scrollPane );
305
306
splitPane = new JSplitPane (JSplitPane .VERTICAL_SPLIT , upper , consolePanel );
306
307
307
- splitPane .setOneTouchExpandable (true );
308
308
// repaint child panes while resizing
309
309
splitPane .setContinuousLayout (true );
310
310
// if window increases in size, give all of increase to
@@ -321,15 +321,11 @@ public void windowDeactivated(WindowEvent e) {
321
321
Keys .killBinding (splitPane , Keys .ctrl (KeyEvent .VK_TAB ));
322
322
Keys .killBinding (splitPane , Keys .ctrlShift (KeyEvent .VK_TAB ));
323
323
324
- // the default size on windows is too small and kinda ugly
325
- int dividerSize = PreferencesData .getInteger ("editor.divider.size" );
326
- if (dividerSize != 0 ) {
327
- splitPane .setDividerSize (dividerSize );
328
- }
324
+ splitPane .setDividerSize (scale (splitPane .getDividerSize ()));
329
325
330
326
// the following changed from 600, 400 for netbooks
331
327
// http://code.google.com/p/arduino/issues/detail?id=52
332
- splitPane .setMinimumSize (new Dimension (600 , 100 ));
328
+ splitPane .setMinimumSize (scale ( new Dimension (600 , 100 ) ));
333
329
box .add (splitPane );
334
330
335
331
// hopefully these are no longer needed w/ swing
0 commit comments