LINEMAN78
9 Dec 2008, 4:35 PM
I was using a layoutContainer on my main page, which is a BorderLayout, but for some reason when I updated to 1.2 it would expand the section to a size that is a lot bigger than my LayoutData is set for. I put a ContentPanel in it's place and it works fine, but I need it to be transparent like the LayoutContainer. I have tried the following and it does not work.
ContentPanel north = new ContentPanel();
north.setHeaderVisible(false);
north.setBodyBorder(false);
north.setBorders(false);
north.setFooter(false);
north.setFrame(false);
north.setStyleAttribute("backgroundColor", "transparent");
BorderLayoutData northData = new BorderLayoutData(LayoutRegion.NORTH, 30);
northData.setMaxSize(30);
northData.setSize(30);
northData.setMinSize(30);
UPDATE: I have solved my problem with the rendering of the BorderLayout (It had something to do with the order in which I was initializing stuff), but am still interested in being able to change the background color of a ContentPanel
ContentPanel north = new ContentPanel();
north.setHeaderVisible(false);
north.setBodyBorder(false);
north.setBorders(false);
north.setFooter(false);
north.setFrame(false);
north.setStyleAttribute("backgroundColor", "transparent");
BorderLayoutData northData = new BorderLayoutData(LayoutRegion.NORTH, 30);
northData.setMaxSize(30);
northData.setSize(30);
northData.setMinSize(30);
UPDATE: I have solved my problem with the rendering of the BorderLayout (It had something to do with the order in which I was initializing stuff), but am still interested in being able to change the background color of a ContentPanel