PDA

View Full Version : Issue setting background color in IE7



jcorbin
9 Jun 2009, 11:40 AM
Hi,

I am prototyping some UI's using GXT 2.0_M2 and running across some issues with setting background colors on a panel in IE7.

Also using GWT 1.6.4 and JDK 1.5_06 on Windows of course.

Using default blue theme.

I use the following code to set the background in one of my panels,

myPanel.setStyleAttribute("backgroundColor", "white");

This works just fine in every browser except IE7 where the panel is rendered with a blue background.

I assume I am setting the background color correctly for GXT panels. It is my understanding I need to specify camel case as I did.

J.

jpnet
9 Jun 2009, 2:17 PM
Could you try:
myPanel.setBodyStyle("backgroundColor", "white");

Let me know if that works for you.

-JP

jcorbin
9 Jun 2009, 2:42 PM
Sorry forgot to mention this is a VerticalPanel and therefore, no such method named setBodyStyle(...)

Also the VerticalPanel's parent is a ContentPanel with a BorderLayout.

ContentPanel has a setBorderStyle(String) method, but no setBorderStyle(String,String) as you have specified in your response.