Menu

#2748 IE only, column of Grid and Tree do not sync with scroll bar

5.0.7
closed-fixed
nobody
5
2014-08-26
2011-06-29
jimmy shiau
No

<zk>
<button label="update">
<attribute name="onClick"><![CDATA[
if (row1.getNextSibling() == null) {
Row r = new Row();
r.appendChild(new Label("item"));
rows1.appendChild(r);
} else
rows1.getLastChild().detach();

if (row2.getNextSibling() == null) {
Row r = new Row();
r.appendChild(new Label("item"));
rows2.appendChild(r);
} else
rows2.getLastChild().detach();

if (item1.getNextSibling() == null) {
lb1.appendChild(new Listitem("item"));
} else
lb1.getLastChild().detach();

if (item2.getNextSibling() == null) {
lb2.appendChild(new Listitem("item"));
} else
lb2.getLastChild().detach();

if (ti1.getNextSibling() == null) {
tc1.appendChild(new Treeitem("item"));
} else
tc1.getLastChild().detach();

if (ti2.getNextSibling() == null) {
tc2.appendChild(new Treeitem("item"));
} else
tc2.getLastChild().detach();
]]></attribute>
</button>

<vlayout>
<hlayout sclass="z-valign-top">
<grid width="100px" height="100px">
<columns>
<column label="column" />
</columns>
<rows id="rows1">
<row>item</row>
<row id="row1">item</row>
</rows>
</grid>
<grid width="100px" height="100px">
<columns>
<column label="column" />
</columns>
<rows id="rows2">
<row>item</row>
<row id="row2">item</row>
<row>item</row>
</rows>
</grid>
</hlayout>
<hlayout sclass="z-valign-top">
<listbox id="lb1" width="100px" height="100px">
<listhead>
<listheader label="column"/>
</listhead>
<listitem label="item"/>
<listitem id="item1" label="item"/>
</listbox>
<listbox id="lb2" width="100px" height="100px">
<listhead>
<listheader label="column"/>
</listhead>
<listitem label="item"/>
<listitem id="item2" label="item"/>
<listitem label="item"/>
</listbox>
</hlayout>
<hlayout sclass="z-valign-top">
<tree width="100px" height="100px">
<treecols>
<treecol label="column"/>
</treecols>
<treechildren id="tc1">
<treeitem label="column"/>
<treeitem label="column"/>
<treeitem id="ti1" label="column"/>
</treechildren>
</tree>
<tree width="100px" height="100px">
<treecols>
<treecol label="column"/>
</treecols>
<treechildren id="tc2">
<treeitem label="column"/>
<treeitem label="column"/>
<treeitem id="ti2" label="column"/>
<treeitem label="column"/>
</treechildren>
</tree>
</hlayout>
</vlayout>
</zk>

Discussion

  • Jumper Chen

    Jumper Chen - 2011-07-13

    Fixed since 2011/07/13

     
  • Jumper Chen

    Jumper Chen - 2011-07-13
    • status: open --> closed-fixed
     

Log in to post a comment.