Textfield scaling issue

Thought I’d post about this issue unless anyone else comes across something similar and needs a fix.

On a recent site I worked on (www.sky.com/bintm) i’m scaling the content when the user goes into FullScreen mode to make use of slightly higher res photo assets available.

This knocks the double column text article page out of whack. Essentially scaling a movieclip with a dynamic textfield in it results in a different textHeight and numLines being traced for the same textfield dependent on whether you’re in FullScreen mode or not.

After a bit of hunting I came up with the following fix – setting the gridFitType property of the textfield to GridFitType.SUBPIXEL . I tried GridFitType.PIXEL but that still gave different results dependent on the users screen mode.

Please follow and like us:

Leave a Comment