Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-674

Tab lost if add tabpanel first in accordion mold

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.10
    • 5.0.9
    • None
    • None

      As code below, click add tabpanel then tab only the tabpanel is added,
      click it again, nothing happend.

      <zk>
      	<tabbox id="tabbox" mold="accordion" width="400px">
      		<tabs id="tabs"></tabs>
      		<tabpanels id="tabpanels"></tabpanels>
      	</tabbox>
      	<button id="addTabAndPanel" label="add tabpanel then tab">
      		<attribute name="onClick">
      			<![CDATA[
      			Tabpanel tabpanel = new Tabpanel();
      			Label label = new Label("tabpanel");
      			label.setParent(tabpanel);
      			tabpanel.setParent(tabpanels);
      			Tab tab = new Tab();
      			tab.setClosable(true);
      			tab.setLabel("tab");
      			tab.setParent(tabs);
             		]]>
      		</attribute>
      	</button>
      </zk>
      

            benbai benbai
            benbai benbai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: