7 Replies Latest reply on Dec 6, 2010 9:26 AM by Darrell Loverin

    Setting styles on loaded modules


      I have an app with 70+ modules that get loaded at various times. I want to set styles on these modules when they are loaded or afterwards (depending on users' choice).


      Tried: StyleManager.getStyleManager( null ).getStyleDeclaration( "global" ).setStyle( <style> );

      StyleManager.getStyleManager( null ).getStyleDeclaration( ".modulePanelName" ).setStyle( <style> );


      but didn't get anywhere with either approach. Is there a recommended method for setting these values?


      Specifically - Im trying to set 'fontSize' across the board. When I call the above with 'global' it works in the main application but not anywhere deeper.