mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
simplify the divider location setup
This commit is contained in:
@@ -219,11 +219,12 @@ public class EditorState {
|
||||
|
||||
void apply(Editor editor) {
|
||||
editor.setBounds(editorBounds);
|
||||
if (dividerLocation != 0) {
|
||||
editor.setDividerLocation(dividerLocation);
|
||||
} else {
|
||||
editor.setDividerLocation(2 * editor.getSize().height / 3);
|
||||
|
||||
if (dividerLocation == 0) {
|
||||
dividerLocation = 2 * editor.getSize().height / 3;
|
||||
}
|
||||
editor.setDividerLocation(dividerLocation);
|
||||
|
||||
if (isMaximized) {
|
||||
editor.setExtendedState(Frame.MAXIMIZED_BOTH);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user