mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
more small screen fixes from #3992
This commit is contained in:
@@ -161,6 +161,9 @@ public class EditorState {
|
||||
int defaultWidth = Preferences.getInteger("editor.window.width.default");
|
||||
int defaultHeight = Preferences.getInteger("editor.window.height.default");
|
||||
|
||||
defaultWidth = Math.min(defaultWidth, deviceBounds.width);
|
||||
defaultHeight = Math.min(defaultHeight, deviceBounds.height);
|
||||
|
||||
if (editors.size() == 0) {
|
||||
// If no current active editor, use default placement.
|
||||
// Center the window on ths screen, taking into account that the
|
||||
@@ -242,4 +245,4 @@ public class EditorState {
|
||||
// writer.print('\t');
|
||||
// writer.print(rect.height);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user