I found, probably a bug related to the hidden tab. When there are three tabs (or more), the second one is hidden. When you click and select the third one (actually the second visible one) and close it, the content disappears in the first one.
SmartGWT 13.1d 2024-02-06
macOS 13.2.1
Chrome 121.0.6167.139 , Safari 16.3
SmartGWT 13.1d 2024-02-06
macOS 13.2.1
Chrome 121.0.6167.139 , Safari 16.3
Code:
Tab t1 = new Tab("t1"); Tab t2 = new Tab("t2"); Tab t3 = new Tab("t3"); t1.setPane(new Label("This is 1st Tab")); t2.setPane(new Label("This is 2nd Tab")); t3.setPane(new Label("This is 3rd Tab")); //important piece of code: t2.setHidden(true); t3.setCanClose(true); TabSet ts = new TabSet(); ts.addTab(t1); ts.addTab(t2); ts.addTab(t3); VLayout vl = new VLayout(); Label lb = new Label("Three tabs. The second one is hidden. When you click the third one (actually the second visible one) and close it, the content disappears in the first one."); vl.addMembers(lb, ts);
Comment