Skip to content

Commit f235774

Browse files
committed
Split pane is now sized correctly
1 parent 885a517 commit f235774

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

app/src/processing/app/Editor.java

+3-7
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
import java.util.zip.ZipFile;
8080

8181
import static processing.app.I18n.tr;
82+
import static processing.app.Theme.scale;
8283

8384
/**
8485
* Main editor panel for the Processing Development Environment.
@@ -304,7 +305,6 @@ public void windowDeactivated(WindowEvent e) {
304305
upper.add(scrollPane);
305306
splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, upper, consolePanel);
306307

307-
splitPane.setOneTouchExpandable(true);
308308
// repaint child panes while resizing
309309
splitPane.setContinuousLayout(true);
310310
// if window increases in size, give all of increase to
@@ -321,15 +321,11 @@ public void windowDeactivated(WindowEvent e) {
321321
Keys.killBinding(splitPane, Keys.ctrl(KeyEvent.VK_TAB));
322322
Keys.killBinding(splitPane, Keys.ctrlShift(KeyEvent.VK_TAB));
323323

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()));
329325

330326
// the following changed from 600, 400 for netbooks
331327
// 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)));
333329
box.add(splitPane);
334330

335331
// hopefully these are no longer needed w/ swing

0 commit comments

Comments
 (0)