flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From derChris <christian.kie...@goal-games.de>
Subject setting "styleDeclaration" on label and setting a style via setStyle() results in chanages to the style for ALL components using it
Date Wed, 23 Apr 2014 07:08:15 GMT
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...

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

Best regards,


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.

View raw message