File tree Expand file tree Collapse file tree
app/src/processing/app/ui Expand file tree Collapse file tree Original file line number Diff line number Diff 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+ }
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ X curveVertex() does not work with FX2D renderer
33X https://github.com/processing/processing/issues/3960
44X hide menu bar on OS X when FX2D is running full screen
55X 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
You can’t perform that action at this time.
0 commit comments