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

Update tabbox and grid will cause js error in IE9

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.0.8
    • Fix Version/s: 5.0.9
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:

      Description

      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>

        Attachments

          Activity

            People

            • Assignee:
              jumperchen jumperchen
              Reporter:
              matthewgo matthewgo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: