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

Listboxes with width=100% and hflex=1 placed inside TableLayout do not resize correctly

XMLWordPrintable

    • None

      Using the zul below the problem can be seen. A listbox in a vbox resizes correctly if width/hflex set properly, but only gets bigger if placed inside a tablelayout. The tablechildren width/hflex doesn't seem to change anything. See the attached gif for a screencam of the issue.

      <window title="Resize Issue Test Window" border="normal" width="200px" sizable="true">
      <vbox width="100%" hflex="1">

      <vbox width="100%" hflex="1">
      <listbox width="100%" hflex="1">
      <listhead>
      <listheader label="Resizes"/>
      <listheader label="Properly"/>
      </listhead>
      <listitem>
      <listcell label="Test Cell"/>
      <listcell label="Test Cell"/>
      </listitem>
      </listbox>
      </vbox>

      <tablelayout width="100%" hflex="1">
      <tablechildren width="100%" hflex="1">
      <listbox width="100%" hflex="1">
      <listhead>
      <listheader label="Grows but"/>
      <listheader label="Doesn't shrink"/>
      </listhead>
      <listitem>
      <listcell label="Test Cell"/>
      <listcell label="Test Cell"/>
      </listitem>
      </listbox>
      </tablechildren>
      </tablelayout>

      </vbox>
      </window>

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

              Created:
              Updated:
              Resolved: