Should it be that way?

We ran into that problem when switching from StyleableTextField to Label
long ago without changing styleDeclaration to styleName and now using
setStyle("paddingLeft", 15) on that label at one point of our app... And the
paddingLeft of that style was 15 everywhere in the app...

changing 
label.styleDeclaration = styleManager.getStyleDeclaration(".labelXYZ");
to
label.styleName = ".labelXYZ";
solved the problem...

Best regards,

Christian



--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/setting-styleDeclaration-on-label-and-setting-a-style-via-setStyle-results-in-chanages-to-the-style-t-tp6236.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to