rootPanel.addStyleName does not cover style in PopupPanel

23 views
Skip to first unread message

tong123123

unread,
Jan 17, 2013, 3:59:04 AM1/17/13
to google-we...@googlegroups.com
all my css class has the prefix class name .als to prevent css classname collision with other project, e.g.
.als .class1{};
.als .class2{};

I plan to use
rootPanel.addStyleName("als");
so that all element will has prefix css classname "als", and I can just use
textbox1.addStyleName("class1");

but I discover that in all PopupPanel, this is not true, the widget is PopupPanel will not has prefix css classname "als", so it is very trouble to add
.addStyleName("als");
in the first line of each PopupPanel.
Any method to let all widget in my application, including widgets in PopupPanel, will have css classname "als"?


Thomas Broyer

unread,
Jan 17, 2013, 4:27:51 AM1/17/13
to google-we...@googlegroups.com
Which RootPanel are you styling? PopupPanel's are added as direct children of the <body>, i.e. RootPanel.get().
Reply all
Reply to author
Forward
0 new messages