PDA

View Full Version : How to make the background color of ContentPanel the same as FormPanel?



hongjiang.zhang
4 Jan 2011, 6:15 PM
I found in IE the window can not display normally if it use a FormPanel which contains anther FormPanel. My work around is to replace the inner FormPanel with ContentPanel, but the background color of ContentPanel is not the same as FormPanel. How can I make the default background color the same as FormPanel?

Ersmarker
15 Mar 2011, 1:15 AM
The default background color of FormPanel is transparent and gets the color of it's container.
The default background color of ContentPanel is white.

To set the ContentPanel background to transparent, do:

contentPanel.setBodyStyle("background-color: transparent");