Thanks but I tried all that, and invalidateNow() as well, in several spots in 
the code. I tried 
digging through the code to see where the CSS gets set versus where the 
measurement 
takes place and even reset the textfield text property after the 
StyleEvent.CHANGED is 
fired. No dice on any of it.


--- In flexcoders@yahoogroups.com, "Aaron Miller" <[EMAIL PROTECTED]> wrote:
>
> Maybe you can try calling one or all of these methods on your text field
> after the style changes:
> 
> invalidateProperties();
> invalidateSize();
> invalidateDisplayList();
> 
> If I had to choose one, I think invalidateSize() should work on it's own.
> This isn't my expert opinion, I just know I have to call these methods in my
> custom item renderers after updating the data or text styles.
> 
> Hope this helps,
> ~Aaron
> 
> On Mon, Mar 31, 2008 at 7:48 AM, doug31415 <[EMAIL PROTECTED]> wrote:
> 
> >   I am writing an application that uses CSS files compiled to SWFs. The
> > different CSS files
> > reference different embedded fonts, for example A.css uses Arial while
> > B.css references
> > Courier. In the main application, when I want to change styles, I call a
> > method with this line:
> >
> > StyleManager.loadStyleDeclarations (newStyleURL, true, false,
> > ApplicationDomain.currentDomain);
> >
> > However, the result is that the textFields get unusual formatting. For
> > example, they "forget"
> > to line-wrap. They do pick up the new embedded font and other styles.
> >
> > Can anyone suggest what might cause this and what to do about it?
> >
> >  
> >
>



Reply via email to