We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 937af20 commit 9a52e0bCopy full SHA for 9a52e0b
src/main/java/org/scijava/ui/swing/script/TextEditor.java
@@ -773,6 +773,12 @@ public void componentResized(final ComponentEvent e) {
773
774
setLocationRelativeTo(null); // center on screen
775
776
+ // HACK: Avoid weird macOS bug where window becomes tiny
777
+ // in bottom left corner if centered while maximized.
778
+ int y = getLocation().y - 11;
779
+ if (y < 0) y = 0;
780
+ setLocation(getLocation().x, y);
781
+
782
open(null);
783
784
final EditorPane editorPane = getEditorPane();
0 commit comments