Proportionally Scale A Field?

Scott Rossi scott at tactilemedia.com
Sun Feb 24 13:58:14 EST 2013


Thanks John.  To be even more precise, it looks like the solution is to
ignore the topMargin and keep the others.  You might want to update your
library to include this.

[sigh]  So much wasted time.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




On 2/24/13 6:39 AM, "John Craig" <john at splash21.com> wrote:

>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
>>
>
>
>_______________________________________________
>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