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

Js error when flex + visible = false

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.3
    • Fix Version/s: 6.5.4
    • Component/s: Components
    • Labels:
      None

      Description

      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)
      

        Issue Links

          Activity

          Hide
          jumperchen jumperchen added a comment -

          Bug fixed since 7/26/2013

          Show
          jumperchen jumperchen added a comment - Bug fixed since 7/26/2013

            People

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

              Dates

              • Created:
                Updated:
                Resolved: