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

Listbox renders a horizontal scrollbar unexpectedly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.6.1
    • 8.6.0
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. run the zul

      	<listbox id="listbox02" rows="3">
      		<listhead sizable="true">
      			<listheader hflex="min"  />
      			<listheader hflex="1" />
      		</listhead>
      		<listitem>
      			<listcell label="1st cell" />
      			<listcell label="cell content" />
      		</listitem>
      		<listitem>
      			<listcell label="1st cell" />
      			<listcell label="cell content" />
      		</listitem>
      		<listitem>
      			<listcell label="1st cell" />
      			<listcell label="cell content" />
      		</listitem>
      		<listitem>
      			<listcell label="1st cell" />
      			<listcell label="cell content" />
      		</listitem>
      		<listitem>
      			<listcell label="1st cell" />
      			<listcell label="cell content" />
      		</listitem>
      		<listitem>
      			<listcell label="1st cell" />
      			<listcell label="cell content" />
      		</listitem>
      		<listitem>
      			<listcell label="1st cell" />
      			<listcell label="cell content" />
      		</listitem>
      		<listitem>
      			<listcell label="1st cell" />
      			<listcell label="cell content" />
      		</listitem>
      	</listbox>
      

      Current Result

      the horizontal scrollbar is unecessary.

      Expected Result

      no horizontal scrollbar

      Debug Information

      • <col id="sBuPk-bdfaker" style="width: 1447px;">
        listbox sets col in colgroup with a larger width that produces a horizontal scrollbar

      Workaround

      • remove hflex=1
      • specify label on <listheader>

            Leon03 Leon03
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2 days, 4 hours Original Estimate - 2 days, 4 hours
                2d 4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 5 hours
                2d 5h