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

hflex="1" not work after changing visible state

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.1
    • Fix Version/s: 6.5.2
    • Component/s: Components
    • Labels:

      Description

      <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".

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: