You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by derChris <ch...@goal-games.de> on 2014/04/23 09:08:15 UTC

setting "styleDeclaration" on label and setting a style via setStyle() results in chanages to the style for ALL components using it

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.