Proportionally Scale A Field?

John Craig john at splash21.com
Sun Feb 24 09:39:23 EST 2013


Check out http://mobgui.com/morph.php
In particular, the coments in the morph.rescale handler of the MorphLib 
stack.  I was surprised to find that ignoring the margins for field 
objects worked for the tests I was doing.

I'm not sure if it will work for your particular set up, but worth a go.

:)


On 24/02/2013 08:32, Scott Rossi wrote:
> Hi All:
>
> Has anyone been able to figure out how to proportionally scale a basic field
> in LiveCode?
>
> I'm not talking about the text size (obvious), but rather the margin
> offsets.  Specifically, the top margin is the problem.  Contrary to what you
> would expect, doubling or tripling the top margin when doubling or tripling
> the size of the field doesn't result in proportional results: the top margin
> value increases correctly, but the actual number of pixels the text is
> offset is incorrect.
>
> I've spent days trying to figure out some rhyme or reason behind the
> numbers, and even broke down and tried to chart the results with the hope of
> finding a pattern/formula, but I can't figure out anything.  Things get even
> more convoluted when changing the field's textSize or textHeight.
>
> I've bug reported this and asked RunRev for assistance but they have not
> been able to help.
>
> How do folks scale fields for different resolutions on mobile?  What's the
> formula?
>
> Thanks & Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>





More information about the use-livecode mailing list