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

Hflex fail with nest container

    Details

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

      Description

      <window title="win" border="normal" hflex="min">
      <vbox hflex="min">
      <window title="win" border="normal" hflex="min"/>
      <grid hflex="min">
      <columns>
      <column forEach="1,2,3" label="col $

      {each}" hflex="min"/>
      </columns>
      <rows>
      <row forEach="1,2,3">
      <label forEach="1,2,3" value="item ${each}

      " />
      </row>
      </rows>
      </grid>
      </vbox>
      </window>

        Activity

        Hide
        SimonPai SimonPai added a comment -

        Window will have full width when it has no child, even if it has hflex="min".
        Work-around: add a <span /> in the inner Window.

        Refined test case:
        <vbox hflex="min" style="border: 1px solid green">
        <window title="win" border="normal" hflex="min">
        <span />
        </window>
        <grid hflex="min">
        <columns>
        <column label="col 1" hflex="min" />
        <column label="col 2" hflex="min" />
        </columns>
        <rows>
        <row>
        <label value="item 1" />
        <label value="item 2" />
        </row>
        </rows>
        </grid>
        </vbox>

        Show
        SimonPai SimonPai added a comment - Window will have full width when it has no child, even if it has hflex="min". Work-around: add a <span /> in the inner Window. Refined test case: <vbox hflex="min" style="border: 1px solid green"> <window title="win" border="normal" hflex="min"> <span /> </window> <grid hflex="min"> <columns> <column label="col 1" hflex="min" /> <column label="col 2" hflex="min" /> </columns> <rows> <row> <label value="item 1" /> <label value="item 2" /> </row> </rows> </grid> </vbox>
        Hide
        SimonPai SimonPai added a comment -

        Fixed since 2011/7/21.

        Show
        SimonPai SimonPai added a comment - Fixed since 2011/7/21.

          People

          • Assignee:
            SimonPai SimonPai
            Reporter:
            as1225 as1225
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: