if the stack width is less than 1024 I want to basically stop resizing.
Code: Select all
on resizeStack pNewWidth, pNewHeight
if pNewWidth < 1024 or pNewHeight < 740 then
-- will set always the width of stack to 1024 but then when width of stack is set to 1024 stack is shifting to left - this issue is with windows
-- on Mac it will not even stop resizing and I was able still resize or set the width less than 1024
set the width of stack "Design" to 1024
else
set the width of graphic "RectangleBottom" to pNewWidth+20
set the topLeft of graphic "RectangleBottom" to -10,pNewHeight-60
end if
end resizeStack
Does not work on Mac will not stop resizing.