In the TabSet component, if I have both setCanReorderTabs(true) and setCanAddTabs(true) I am allowed to reorder the tabs beyond the add tabs button. Furthermore, when moving my tab(s) back from beyond the add tab button, the number of tabs counter is wrong.
I have the following minimal example:
Now I am able to move tab 2 to the right of the add tab button and after moving it back again I have produced the following log
I am currently using the smartgwt found here: https://www.smartclient.com/builds/S...GPL/2016-12-19
Hope you are able to fix it.
I have the following minimal example:
Code:
public void onModuleLoad() { final TabSet tabs = new TabSet(); tabs.setCanReorderTabs(true); tabs.setWidth("50%"); tabs.setCanAddTabs(true); Tab t1 = new Tab("tab1"); Tab t2 = new Tab("tab2"); tabs.addTab(t1); tabs.addTab(t2); tabs.draw(); tabs.addTabsReorderedHandler(new TabsReorderedHandler() { @Override public void onTabsReordered(TabsReorderedEvent event) { GWT.log("Number of tabs: " + tabs.getNumTabs()); } }); }
Code:
Number of tabs: 2 Number of tabs: 3
Hope you are able to fix it.
Comment