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

Tree with native scrollbar problem when opening nodes further down

XMLWordPrintable

      open run this example and open a node at the bottom of the tree...
      the further down the node you open, the more the tree/page will scroll down, until the whole tree gets out of view

      <zk>
      	<div height="400px" width="300px">
      		<custom-attributes org.zkoss.zul.nativebar="true" />
      		<zscript>
      			List items = Collections.nCopies(100, "tree cell");
      		</zscript>
      		<tree model="@load(vm.dataObject.treeModel)" id="tree" hflex="1"
      			vflex="1">
      			<treechildren>
      				<treeitem open="false" forEach="${items}">
      					<treerow>
      						<treecell>
      							<label
      								value="${each} ${forEachStatus.index}" />
      						</treecell>
      					</treerow>
      					<treechildren>
      						<treeitem>
      							<treerow>
      								<treecell>
      									<label
      										value="${each} ${forEachStatus.index} - nested" />
      								</treecell>
      							</treerow>
      						</treeitem>
      					</treechildren>
      				</treeitem>
      			</treechildren>
      		</tree>
      	</div>
      </zk>
      

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

              Created:
              Updated:
              Resolved: