Skip to content

Commit da1fb49

Browse files
committed
more small screen fixes from #3992
1 parent d2d5ebe commit da1fb49

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

app/src/processing/app/ui/EditorState.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ void defaultLocation(List<Editor> editors) {
161161
int defaultWidth = Preferences.getInteger("editor.window.width.default");
162162
int defaultHeight = Preferences.getInteger("editor.window.height.default");
163163

164+
defaultWidth = Math.min(defaultWidth, deviceBounds.width);
165+
defaultHeight = Math.min(defaultHeight, deviceBounds.height);
166+
164167
if (editors.size() == 0) {
165168
// If no current active editor, use default placement.
166169
// Center the window on ths screen, taking into account that the
@@ -242,4 +245,4 @@ void apply(Editor editor) {
242245
// writer.print('\t');
243246
// writer.print(rect.height);
244247
// }
245-
}
248+
}

core/todo.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ X curveVertex() does not work with FX2D renderer
33
X https://github.com/processing/processing/issues/3960
44
X hide menu bar on OS X when FX2D is running full screen
55
X add quotes to the necessary parameters in the size() error messages
6+
X Editor menu is outside the visible screen with 800x480 display
7+
X https://github.com/processing/processing/issues/3913
8+
X https://github.com/processing/processing/pull/3999
9+
X https://github.com/processing/processing/pull/3992
610
_ when calling exit(), if sketch has halted w/ exception, force the quit
711
_ otherwise have to double-quit with cmd-q on OS X
812
_ simple test case: using size() inside setup() from Eclipse

0 commit comments

Comments
 (0)