Card auto sizing
Richmond
richmondmathewson at gmail.com
Wed Feb 27 12:57:13 EST 2013
On 02/27/2013 07:32 PM, Mark Wieder wrote:
>>> It it possible to auto size a card to the size of a field of that card ?
> ...or you could simply say
>
> on mouseUp
> set the width of this stack to the width of field 1
> set the height of this stack to the height of field 1
> set the loc of field 1 to the loc of this card
> end mouseUp
>
However, aesthetically, that would look unattractive, and a bit of
padding might make things better:
on mouseUp
set the width of this stack to ((the width of fld 1) + 10)
set the height of this stack to ((the height of fld 1) + 10)
set the loc of fld 1 to the loc of this card
end mouseUp
small difference in terms of code; big difference in terms of what the
thing looks like.
Richmond.
More information about the use-livecode
mailing list