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

hflex does not work properly inside a Toolbar component

XMLWordPrintable

      When using hflex inside a Toolbar component, the sizes of its children are not computed properly.

      In this example, the Textbox inside the Toolbar does not take the remaining width of the toolbar, but the Textbox inside the Hbox does:

      <zk>
      <panel border="normal" width="500px" height="400px" title="Panel">
      	<toolbar hflex="1">
      		<button label="Add"/>
      		<button label="Delete"/>
      		<textbox hflex="1" value="Enter something to search..."/>
      		<button label="Go"/>
      	</toolbar>
      	<panelchildren>
      		<hbox hflex="1">
      			<button label="Add"/>
      			<button label="Delete"/>
      			<textbox hflex="1" value="Enter something to search..."/>
      			<button label="Go" hflex="1"/>                  
                	</hbox>
      	</panelchildren>
      </panel>
      </zk>
      

            noahhuang noahhuang
            tekkie tekkie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: