more small screen fixes from #3992

This commit is contained in:
Ben Fry
2015-10-23 15:30:44 -04:00
parent 8e55cec4dc
commit 2ae62196ba
2 changed files with 8 additions and 1 deletions
+4 -1
View File
@@ -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);
// }
}
}