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

hflex="1" not work after changing visible state

XMLWordPrintable

    • None

      <zk>
      	<window title="Window1" border="normal" id="win" width="600px">
      		<hlayout hflex="1" id="h">
      			<vlayout hflex="1">
      				<label value="Listbox A"/>
      				<listbox hflex="1">
      					<listitem label="A1"/>
      					<listitem label="A2"/>
      				</listbox>
      			</vlayout>
      			<vlayout hflex="1" id="d" visible="false">
      				<label value="Listbox B"/>
      				<listbox hflex="1">
      					<listitem label="B1"/>
      					<listitem label="B2"/>
      				</listbox>
      			</vlayout>
      		</hlayout>
      		<button label="toggle" onClick="d.visible = !d.visible;" />
      	</window>
      </zk>
      

      Steps:
      1. Click "toggle" button.
      2. See Listbox B showed
      3. Click "toggle" button again.
      Expect:
      Should see "Listbox B" disappear and "Listbox A" should resized to match hflex="1".
      Actual:
      Listbox A didn't resize to match hflex="1".

            vincentjian vincentjian
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: