-
Bug
-
Resolution: Fixed
-
Normal
-
5.0.8
-
Security Level: Jimmy
-
None
please click button 1, button 2, and then button 3
<zk>
<tabbox id="tab">
<tabs id="tabs"/>
<tabpanels id="tps" />
</tabbox>
<grid id="grid" />
<button label="1">
<attribute name="onClick">
tabs.appendChild(new Tab("x"));
tabs.appendChild(new Tab("y"));
Tabpanel tp = new Tabpanel();
tp.appendChild(new Label("x"));
Tabpanel tp1 = new Tabpanel();
tp1.appendChild(new Label("xx"));
tps.appendChild(tp);
tps.appendChild(tp1);
</attribute>
</button>
<button label="2">
<attribute name="onClick">
tabs.getChildren().clear();
tps.getChildren().clear();
tabs.appendChild(new Tab("x"));
tabs.appendChild(new Tab("y"));
Tabpanel tp = new Tabpanel();
tp.appendChild(new Label("x"));
Tabpanel tp1 = new Tabpanel();
tp1.appendChild(new Label("xx"));
tps.appendChild(tp);
tps.appendChild(tp1);
//tab.invalidate(); //workaround
</attribute>
</button>
<button label="3">
<attribute name="onClick">
Columns cls = new Columns();
Column c1 = new Column("x");
Column c2 = new Column("x");
Column c3 = new Column("x");
Column c4 = new Column("x");
cls.setParent(grid);
c1.setParent(cls);
c2.setParent(cls);
c3.setParent(cls);
c4.setParent(cls);
</attribute>
</button>
</zk>