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

Js error when flex + visible = false

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.4
    • 6.5.3
    • Components
    • None

      run following code will get js error

      <zk>
      	<window title="CHT1" border="normal" hflex="1" vflex="1">
      		<hlayout hflex="1" vflex="1">
      			<listbox  vflex="1" width="300px">
      				
      			</listbox>
      			<div hflex="1" vflex="1" visible="false">
      				<vlayout hflex="1" vflex="1">
      					<label value="KK" />
      					<listbox  rows="3" width="300px" >
      						<template name="model">
      							<listitem />
      						</template>
      					</listbox>
      					
      				</vlayout>
      			</div>
      		</hlayout>
      	</window>
      </zk>
      
      Uncaught TypeError: Cannot read property 'style' of undefined zk.wpd:19
      zk.Widget.zk.$extends.setFlexSize_ zk.wpd:19
      zul.box.Layout.zk.$extends._resetBoxSize zul.box.wpd:2
      zul.box.Layout.zk.$extends.beforeChildrenFlex_ zul.box.wpd:2
      zFlex.fixFlex zk.wpd:24
      zFlex.onSize zk.wpd:24
      m zk.wpd:13
      zk.$extends.fire zk.wpd:13
      n zk.wpd:13
      zWatch.fireDown zk.wpd:13
      zUtl.fireSized zk.wpd:18
      zk.Widget.zk.$extends.replaceHTML zk.wpd:19
      s zk.wpd:21
      d zk.wpd:21
      l zk.wpd:20
      zk.copy.setLoaded._zkf zk.wpd:20
      (anonymous function) zul.sel.wpd:59
      l zk.wpd:20
      zk.copy.setLoaded._zkf zk.wpd:20
      (anonymous function) zul.mesh.wpd:21
      l zk.wpd:20
      zk.copy.setLoaded._zkf zk.wpd:20
      (anonymous function) zul.menu.wpd:18
      l zk.wpd:20
      zk.copy.setLoaded._zkf zk.wpd:20
      (anonymous function) zul.wnd.wpd:13
      l zk.wpd:20
      zk.copy.setLoaded._zkf zk.wpd:20
      (anonymous function) zul.box.wpd:16
      l zk.wpd:20
      zk.copy.setLoaded._zkf zk.wpd:20
      (anonymous function)
      

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

              Created:
              Updated:
              Resolved: