formattedheight and formattedwidth
J. Landman Gay
jacque at hyperactivesw.com
Sat Jun 25 22:04:57 EDT 2011
On 6/25/11 2:17 PM, Pete wrote:
> I have a number of cards in the same substack that need to be displayed with
> different heights and widths. In the preOpenStack handlerr, I have:
>
> set the height of this stack to the formattedheight of this card
> set the width of this stack to the formattedwidth of this card
>
> The height and width end up several pixels short of what they need to be.
> Adding 10 to the fomattedheight and 20 to the formattedwidth makes things
> about right, but
Use the height and width, not the formattedHeight and formattedWidth.
The formatted measurements only include the smallest area that
encompasses all the visible objects objects. If the card objects don't
touch all four sides, the formatted measurements will be smaller than
the card measurements.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list