PDA

View Full Version : Cannot resize tab width nor make the tabs resizable



gui0506
2 Feb 2015, 1:38 PM
Hello, I am using GXT3.1.2/GWT2.6.

First of all, I want to set the tab width to specific width. I tried to use setTabWidth, but no luck. This is my code.
private void initializeTabPanel(){
tabPanel = new TabPanel();
tabPanel.setAnimScroll(true);
tabPanel.setTabScroll(true);
tabPanel.setCloseContextMenu(true);
tabPanel.setTabWidth(600);
}

Second, I want to let the tabs fill up remaining spaces of the tabPanel, but still no luck.
This is my code:
private void initializeTabPanel(){
tabPanel = new TabPanel();
tabPanel.setAnimScroll(true);
tabPanel.setTabScroll(true);
tabPanel.setCloseContextMenu(true);
tabPanel.setResizeTabs(true);
}





I attached a picture to show what I want to achieve. I am not sure whether I made some mistake or it is just a bug. Please help.

51648