Opening a stack changes it's set rect

Mark Waddingham mark at livecode.com
Fri May 24 14:14:26 EDT 2019


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.

-- 
Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps




More information about the Use-livecode mailing list