Skip to content

Commit

Permalink
Split pane is now sized correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jan 26, 2016
1 parent 885a517 commit f235774
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/src/processing/app/Editor.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
import java.util.zip.ZipFile;

import static processing.app.I18n.tr;
import static processing.app.Theme.scale;

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

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

// the default size on windows is too small and kinda ugly
int dividerSize = PreferencesData.getInteger("editor.divider.size");
if (dividerSize != 0) {
splitPane.setDividerSize(dividerSize);
}
splitPane.setDividerSize(scale(splitPane.getDividerSize()));

// the following changed from 600, 400 for netbooks
// http://code.google.com/p/arduino/issues/detail?id=52
splitPane.setMinimumSize(new Dimension(600, 100));
splitPane.setMinimumSize(scale(new Dimension(600, 100)));
box.add(splitPane);

// hopefully these are no longer needed w/ swing
Expand Down

0 comments on commit f235774

Please sign in to comment.