oosthuja
4 Dec 2008, 9:15 AM
Hi
I am creating a Portal object inside a tab which is in a center layout of a viewport. The problem is that the Portal does not take on the full height of the tab content area.
Here is the code, any help will be appreciated as this is driving me nuts
BorderLayoutData northData = new BorderLayoutData(LayoutRegion.NORTH);
northData.setMargins(new Margins());
BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
centerData.setMargins(new Margins());
.....
add(north, northData);
.....
tabPanel = new TabPanel();
home = new TabItem();
home.setIconStyle("icon-home");
home.setText("Home");
home.setTitle("This is the home page");
Portal p = new Portal(3);
p.setStyleAttribute("background-color", "silver");
p.setColumnWidth(0, .33);
p.setColumnWidth(1, .33);
p.setColumnWidth(2, .33);
p.setBorders(false);
home.setScrollMode(Scroll.AUTO);
home.setLayout(new FitLayout());
home.add(p);
add(tabPanel, centerData);
I am creating a Portal object inside a tab which is in a center layout of a viewport. The problem is that the Portal does not take on the full height of the tab content area.
Here is the code, any help will be appreciated as this is driving me nuts
BorderLayoutData northData = new BorderLayoutData(LayoutRegion.NORTH);
northData.setMargins(new Margins());
BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
centerData.setMargins(new Margins());
.....
add(north, northData);
.....
tabPanel = new TabPanel();
home = new TabItem();
home.setIconStyle("icon-home");
home.setText("Home");
home.setTitle("This is the home page");
Portal p = new Portal(3);
p.setStyleAttribute("background-color", "silver");
p.setColumnWidth(0, .33);
p.setColumnWidth(1, .33);
p.setColumnWidth(2, .33);
p.setBorders(false);
home.setScrollMode(Scroll.AUTO);
home.setLayout(new FitLayout());
home.add(p);
add(tabPanel, centerData);