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

Invisible <auxhead> causes paging control to disappear on initial render

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • 7.0.2
    • 7.0.1
    • Components
    • Security Level: Jimmy

      Run this sample code to reproduce the issue

      The paging control disappears on first render of the page, and only reappears when resizing the surrounding window.
      If the <auxhead> is visible the problem does not occur.

      The problem also occurs, when org.zkoss.zul.nativebar="false"

      and is also reproducible when org.zkoss.zul.grid.autohidePaging="true" in combination with a smaller pagesize on the grid forcing a paging control.
      e.g. pagesize="5" in this example

      <zk>
       	<custom-attributes
      		org.zkoss.zul.nativebar="true"
       		org.zkoss.zul.grid.autohidePaging="false"
       		/>
      
      	<window border="normal" height="200px" sizable="true">
      	    <style content=" .searchFilter .z-label { display:block; } "/>
      	    <grid mold="paging" pageSize="20" vflex="1">
      	        <auxhead visible="false">
      	            <auxheader /><auxheader /><auxheader /><auxheader /><auxheader /><auxheader />
      	        </auxhead>
      	        <columns visible="true">
      	            <column width="100px" label="header"/>
      	            <column width="150px" label="header"/>
      	            <column width="200px" label="header"/>
      	            <column width="350px" label="header"/>
      	            <column width="400px" label="header"/>
      	            <column width="100px" label="header"/>
      	        </columns>
      	        <rows>
      	            <row><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/></row>
      	            <row><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/></row>
      	            <row><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/></row>
      	            <row><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/></row>
      	            <row><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/></row>
      	            <row><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/></row>
      	            <row><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/></row>
      	            <row><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/><label value="test"/></row>
      	        </rows>
      	    </grid>
      	</window>
      </zk>
      

            jumperchen jumperchen
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: