I've tried to tackle this before and failed. From memory there's some extra pixels above the number of lines * the line height + top and bottom margins when you get the formatted height.
I wonder if you could scale it by adjusting the top margin after scaling based on the difference between the formatted height and the number of lines * the line height + top and bottom margins... If you manage to work it out I'd be very interested to know so I can add this to the mobile screen density and layout framework I'm working on. On 24/02/2013, at 7:32 PM, Scott Rossi <sc...@tactilemedia.com> wrote: > 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? -- Monte Goulding M E R Goulding - software development services mergExt - There's an external for that! _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode