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
resize card with minimum width and height
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: resize card with minimum width and height
Set it on the stack.
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit
Re: resize card with minimum width and height
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:
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.
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
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
Thanks Guys