Thank you Mark!

On 5/24/2019 2:14 PM, Mark Waddingham via use-livecode wrote:
On 2019-05-24 18:08, Paul Dupuis via use-livecode wrote:
I discovered today that opening a stack changes its set rect (at least
under Windows 10 in LC904/905rc1 when opening a stack invisible

See this little gem: https://quality.livecode.com/show_bug.cgi?id=22097

Not a problem is you are just popping up windows and then setting
their positions, but if, for some reason, you want to precisely place
windows (like we do) and then open them, this is a pain in the rear!

Opening a window/stack should not change its rect!

I'd point out here that the stack's *rect* is not being changed... It's effective rect is changing - this is a very different thing (the effective rect is only calculable after the system window object has been created).

Given that the stack is being opened as invisible, then surely you can just open it invisible, then check its effective rect?

Warmest Regards,

Mark.

P.S. A stack keeps its system window when closed unless the 'destroyWindow' property is set; if the latter is set to true, then closing the stack will cause its system window to be destroyed.



_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to