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

each opening reduces a combobox' width

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Normal Normal
    • 9.5.0
    • 9.0.1.2
    • Components
    • Security Level: Jimmy

      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>
      

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

              Created:
              Updated:
              Resolved:

                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