You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a TabsetPanel as content of a tab on another TabsetPanel, the seletion of the lower one will not be restored after switching back and forth.
I created a SimpleWorkScreen like this:
public class SimpleWorkScreen extends RemoteWorkScreen {
UITabsetPanel tabPanel;
public SimpleWorkScreen(IWorkScreenApplication pApplication, AbstractConnection pConnection) throws Throwable {
super(pApplication, pConnection, null);
initializeUI();
}
/**
* Initializes the UI.
*
* @throws Throwable if the initialization throws an error
*/
private void initializeUI() throws Throwable {
setLayout(new UIBorderLayout());
UITabsetPanel tabPanel = new UITabsetPanel();
UITabsetPanel tabPanel1 = new UITabsetPanel();
tabPanel1.add(new UIPanel(), "A");
tabPanel1.add(new UIPanel(), "B");
tabPanel.add(tabPanel1, "1");
UITabsetPanel tabPanel2 = new UITabsetPanel();
tabPanel2.add(new UIPanel(), "C");
tabPanel2.add(new UIPanel(), "D");
tabPanel.add(tabPanel2, "2");
add(tabPanel, IBorderLayout.CENTER);
}
I switched to tab 2 and D. Then back to 1.
After switching back to tab 2, tab C was selected and I couldn't select tab D.
The text was updated successfully, but these errors were encountered:
The issue seems to occur, when you add a UITabsetPanel as tab on another UITabsetPanel. When adding a UITabsetPanel on a UIPanel before and then adding the UIPanel as tab on the UITabsetPanel, the selection seems to work as expected.
UITabsetPanel tabPanel = new UITabsetPanel();
UITabsetPanel tabPanel1 = new UITabsetPanel();
tabPanel1.add(new UIPanel(), "A");
tabPanel1.add(new UIPanel(), "B");
UIPanel workaroundPanel = new UIPanel(new UIBorderLayout());
workaroundPanel.add(tabPanel1, UIBorderLayout.CENTER);
tabPanel.add(workaroundPanel, "1");
UITabsetPanel tabPanel2 = new UITabsetPanel();
tabPanel2.add(new UIPanel(), "C");
tabPanel2.add(new UIPanel(), "D");
workaroundPanel = new UIPanel(new UIBorderLayout());
workaroundPanel.add(tabPanel2, UIBorderLayout.CENTER);
tabPanel.add(workaroundPanel, "2");
setLayout(new UIBorderLayout());
add(tabPanel, IBorderLayout.CENTER);
When adding a TabsetPanel as content of a tab on another TabsetPanel, the seletion of the lower one will not be restored after switching back and forth.
I created a SimpleWorkScreen like this:
I switched to tab 2 and D. Then back to 1.
After switching back to tab 2, tab C was selected and I couldn't select tab D.
The text was updated successfully, but these errors were encountered: