Page 1 of 1

My revMenuBar has slipped

Posted: Fri Sep 24, 2021 10:22 am
by richmond62
With LC 9.6.4 my revMenuBar appears 28 pixels lower than it should . . .

[MacOS 12 beta 7]

. . . typing this into the MessageBox

set the top of stack "revMenuBar" to 24

followed by

save stack "revMenuBar"

is pointless as, on a relaunch of LiveCode the revMenuBar stack
has slipped again.

Re: My revMenuBar has slipped

Posted: Fri Sep 24, 2021 4:44 pm
by dunbarx
Hi.

Are you working on a single monitor?

Craig

Re: My revMenuBar has slipped

Posted: Fri Sep 24, 2021 5:40 pm
by richmond62
No, I have a 3-monitor set up, but I always use LiveCode on my main, central monitor.

And this has only happened in the last 3 days.

Re: My revMenuBar has slipped

Posted: Fri Sep 24, 2021 6:35 pm
by FourthWorld
I've seen this on Ubuntu. The height difference happens to match the height of the title bar on that platform.

I'd guess that something in the code is doing two difference placements, one using the stack rect which doesn't include the decorations, and another that does.

I've been tempted to look into the code to see where that happens, but it's been easy enough to just move the window that I forget about the issue. Besides, with devolution I go weeks at a time without seeing revMenubar at all.

Re: My revMenuBar has slipped

Posted: Fri Sep 24, 2021 6:51 pm
by dunbarx
I am on a Mac. I recently changed my second monitor, which is why I asked. The "top" of my main monitor changed the "top" of all my LC stacks, like the menuBar. Anyway, I run a short routine to set everything right. But this routine has to run now and then, because stuff gets unstuck. It is a price I am glad to pay in order to have a 35" second monitor to hold the SE.

Craig

Re: My revMenuBar has slipped

Posted: Sat Sep 25, 2021 4:55 pm
by jacque
I believe LC uses the windowBoundingRect to adjust its stacks. The dictionary explains how to work with that if you need to position windows outside the boundaries. It sounds like you're either getting an incorrect bounding rect or the relative positions of your monitors has changed.

Re: My revMenuBar has slipped

Posted: Sat Sep 25, 2021 7:45 pm
by richmond62
That makes some sort of sense, because when I tell a stack:

Code: Select all

set the bottom of stack "Whatever" to item 4 of the screenRect
it bungs it somewhere down the bottom, but not at the bottom of the screen.