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

Tree with native scrollbar problem when opening nodes further down

    XMLWordPrintable

    Details

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

      Description

      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>
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: