scijava / script-editor

Script Editor and Interpreter for SciJava script languages
http://imagej.net/Script_Editor
BSD 2-Clause "Simplified" License
12 stars 12 forks source link

Script Editor minimises into bottom left corner #32

Open camlloyd opened 5 years ago

camlloyd commented 5 years ago

The Script Editor minimises into the bottom left corner of the screen. To reproduce:

  1. Open the Script Editor
  2. Maximise the Script Editor
  3. Close the Script Editor
  4. Open the Script Editor again

Running macOS Mojave 10.14.4 and script-editor-0.5.1

I think this is related to the workaround in commit 9a52e0b?

ctrueden commented 5 years ago

@camlloyd Thanks for the report. I noticed a similar behavior, which is why I made that commit you linked in the first place. Sorry to hear my workaround didn't fix the problem on your system.

I cannot troubleshoot this problem directly because I cannot reproduce on my system (also macOS Mojave 10.14.4 with script-editor 0.5.1). Would you be able to look for a workaround? Just add some print statements to that same part of the code to see what's going on with the X,Y position. And add some guards around the edge case that is hitting you on your system. You can hack on the script-editor code by following the directions on the Source code page.

camlloyd commented 5 years ago

@ctrueden Just a quick update: Indeed it seems your issue is similar, but not the same as mine - If I remove your bugfix, this weird behaviour you describe occurs without fail. My issue appears to be more sporadic, sometimes requiring 3 cycles of the above steps in my example to reproduce.

I usually run a multiple monitor setup with a window manager such as Magnet or AppGrid, and suspected one of these might be the culprit - but the example I gave above was with no external display attached and no window manager app running.

Just a thought, what resolution are you running at? Is your bugfix hardcoded for your display? I have a 15" Retina MBP - 2880 x 1800 at 220PPI (Looks like 1440 x 900). Do you have Automatically hide and show the Dock enabled?

Will try debugging later...