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

each opening reduces a combobox' width

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: 9.0.1.2
    • Fix Version/s: 9.5.0
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:

      Description

      Steps to Reproduce

      1. run the attached zul
      2. click to open the combobox more than 3 times

      Current Result

      each opening reduces the combobox' width

      Expected Result

      the width doesn't change

      Debug Information

      1. 8.6.4 doesn't have the bug

      Workaround

      remove

      .igate .z-groupbox-content .z-combobox,
      		.igate .z-groupbox-content .z-spinner {
      			width: 100%;
      		}
      

      Correct Usage

      use hflex only (don't mix pure CSS with ZK)

      ZK only solution
      <div>
          <spinner placeholder="Execution delay time" hflex="1"/>
          <combobox value="Hour" readonly="true" hflex="min">
              <comboitem value="Hour" label="Hour"/>
              <comboitem value="Minute" label="Minute"/>
          </combobox>
      </div>
      
      CSS flexbox only solution
      <div style="display: flex; width: 100%;">
      	<spinner placeholder="Execution delay time"/>
      	<combobox value="Hour" readonly="true" style="flex: 0 0 150px"> <!-- flex has no minimum. We need to specify -->
      		<comboitem value="Hour" label="Hour"/>
      		<comboitem value="Minute" label="Minute"/>
      	</combobox>
      </div>
      

        Attachments

          Issue Links

            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 - 1 day
                  1d
                  Remaining:
                  Time Spent - 4 hours Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - 4 hours Remaining Estimate - 4 hours
                  4h