macOS window maximization weirdness
Paul Dupuis
paul at researchware.com
Fri Jan 19 13:28:52 EST 2024
So , for any one interested, here are screenshots of what is happening.
The "Autocode" window (stack) and the "Search Sources" window (stack)
are two example of the windows that do NOT maximize correctly. Many
other resizable windows do so just fine and windows with both fewer and
more controls in them work fine. There are also a few more windows that
do NOT maximize correctly that I did not screen shot.
Below are screen shots (full desktop) of each window maximized on
Windows 11 (correctly), Sonoma (correctly) and Mojave (incorrectly
drawn). Again, there windows, on ALL 3 OS versions, can be manually
resized without problems. It is only when you click on the macOS
Maximize icon in the title bar. In addition to not drawing correctly on
Mojave, we also witnessed them not drawing correctly on Monterey. The
resizeStack handlers have NO platform specific code.
https://www.researchware.com/livecode/HR457-Autocode-Win11-Maximized.png
https://www.researchware.com/livecode/HR457-Autocode-Mojave-Normal.png
https://www.researchware.com/livecode/HR457-Autocode-Mojave-Maximized.png
https://www.researchware.com/livecode/HR457-Autocode-Sonoma-Normal.png
https://www.researchware.com/livecode/HR457-Autocode-Sonoma-Maximized.png
https://www.researchware.com/livecode/HR457-SearchSources-Win11-Maximized.png
https://www.researchware.com/livecode/HR457-SearchSources-Mojave-Normal.png
https://www.researchware.com/livecode/HR457-SearchSources-Mojave-Maximized.png
https://www.researchware.com/livecode/HR457-SearchSources-Sonoma-Normal.png
https://www.researchware.com/livecode/HR457-SearchSources-Sonoma-Maximized.png
Logically, there must be some difference in the resizeStack handlers. I
have already received the suggested to try having resizeStack send a
"doResize" (or some handler name) message in time that does the actual
resize as a work-around. I have not had a chance to try that yet. I
expect I may OR may not fine that perhaps some use the width and height
passed as resizeStack message handler parameters while others get the
width and height of the card. I'll see if there is some commonality on
how the resizeStack is getting the dimension to resize to between those
windows that work and those that don't.
However, logically, it certainly seems like there is some OS version
specific engine bug emerging here since the same code works on Windows
and some versions of macOS and not others versions of macOS.
On 1/19/2024 9:22 AM, Curry Kenworthy via use-livecode wrote:
>
> Paul:
>
> > on certain macOS versions, maximizing the window results in
> > no controls being drawn or most controls being drawn incorrectly.
>
> When drawn incorrectly, are controls the wrong sizes/rects?
> Or content/visual glitches? Of what nature?
>
> Thought it might be worth following up, in case anyone saw similar -
> or might jog my own memory! So many LC/OS issues, details help....
>
> Happy 2024!
>
> Best wishes,
>
> Curry K.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list