Page 1 of 1

Stack resizable

Posted: Tue Sep 22, 2015 2:22 pm
by antrax13
Hi how would you solve this?

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
Works on Windows but when size is less then 1024 stack will shift to left

Does not work on Mac will not stop resizing.

Re: Stack resizable

Posted: Tue Sep 22, 2015 4:09 pm
by FourthWorld
Why not just set the minWidth property of the stack to 1024?