Hi all,
we are using: SmartClient Version: v10.0p_2015-10-31/LGPL Development Only (built 2015-10-31).
I found a quite tricky behavior of TabSet, when you hide the only (last visible) Tab and show it again, the Tab is drawn without it's pane.
I attached a simple standalone test - easy to reproduce. TestTabSetMissingPane.java
- there is a TabSet with two visible tabs. Show/Hide the tabs by checkboxes below the TabSet.
UseCase1:
- hide both
- show/hide/show 1 > wrong, pane is missing
UseCase2:
- hide 1
- hide 2
- show 1 > ok, pane visible
- hide 1
- show 2 > ok, pane visible
- hide 2
- show 2 > wrong, pane is missing
The "problem" seems to be in the TabSet.js in the function "_tabSelected". There is a part of code:
The first tab to be shown is detected as the already selected one - drawing the pane is skipped.
Thanks for any response...
we are using: SmartClient Version: v10.0p_2015-10-31/LGPL Development Only (built 2015-10-31).
I found a quite tricky behavior of TabSet, when you hide the only (last visible) Tab and show it again, the Tab is drawn without it's pane.
I attached a simple standalone test - easy to reproduce. TestTabSetMissingPane.java
- there is a TabSet with two visible tabs. Show/Hide the tabs by checkboxes below the TabSet.
UseCase1:
- hide both
- show/hide/show 1 > wrong, pane is missing
UseCase2:
- hide 1
- hide 2
- show 1 > ok, pane visible
- hide 1
- show 2 > ok, pane visible
- hide 2
- show 2 > wrong, pane is missing
The "problem" seems to be in the TabSet.js in the function "_tabSelected". There is a part of code:
Code:
var isMoreTab = this.showMoreTab && this.tabBar.isShowingMoreTab() && tabObject == this.moreTab; if (!isMoreTab) { if (tabObject == this._selectedTabObj) return; this._selectedTabObj = tabObject; }
Thanks for any response...
Comment