Page 1 of 1

resize card with minimum width and height

Posted: Thu Feb 26, 2015 8:15 am
by jalz
Hey Guys,

How would I set the minimum height and width a user can to resize my card? Can I do this stack specific, so if I apply this at the Main stack and will it cascade down, or does it have to be done on each individual card.

Many thanks
Jalz

Re: resize card with minimum width and height

Posted: Thu Feb 26, 2015 10:48 am
by keram
Set it on the stack.

Re: resize card with minimum width and height

Posted: Thu Feb 26, 2015 4:12 pm
by tjo7777
Hi Jalz,

I'm pretty much a noob myself, but I think I can answer this question for you.

You can use code like this to set the minimum stack width and height:

Code: Select all

on resizeStack cardWidth, cardHeight
   set the minWidth of this stack to 600
   set the minheight of this stack to 450
end resizeStack
In this example I've done it from inside resizeStack. If the user changes the size of the window this ensures they cannot make it smaller than 600x450. Of course you change the numbers to suit your own needs.

I believe you could also do this from within openStack, but it's probably not necessary if you set the stack properties to the size you like.

Hope this helps,

TJ.

Re: resize card with minimum width and height

Posted: Thu Feb 26, 2015 7:53 pm
by jalz
Thanks Guys :D