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

Listbox with min hflex cannot display empty message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.2
    • Fix Version/s: 8.5.0
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      steps to reproduce

      1. run the zul below
        	<listbox emptyMessage="no items here" hflex="min" >
        	</listbox>
        

      actual result

      Listbox width is 2px and users can't see the empty message

      expected result

      users can see the empty message

      workaround

      <listbox emptyMessage="no items here" style="min-width:200px"/>
      
      <listbox emptyMessage="no items here" hflex='${self.items.size() eq  0?"":"min"}' >
      ...
      </listbox>
      <listbox emptyMessage="no items here" model="${model}" hflex='${model.size() eq  0?"":"min"}' >
      ...
      </listbox>
      

        Attachments

          Activity

            People

            Assignee:
            rudyhuang rudyhuang
            Reporter:
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h