liveResizing on Windows
Posted: Sat Aug 13, 2016 2:21 pm
This property does nothing on Windows which is a shame because sometimes it makes sense to not constantly update the screen when resizing.
I found a hacky but working way to make this work and want to share it.
Add this code in the main stack:
The result is that any (sub)stack with liveResizing set to false only updates its card layout after the resize event.
I found a hacky but working way to make this work and want to share it.
Add this code in the main stack:
Code: Select all
on resizeStack nw, nh, ow, oh, force
if force or the liveResizing of this stack then
pass resizeStack
end if
if "afterResize" is not in the pendingMessages then
send "afterResize" to the target in 1 tick
end if
end resizeStack
on afterResize
dispatch "resizeStack" to the target with the width of me, the height of me, the width of me, the height of me, true
end afterResize