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

Listbox renders a horizontal scrollbar unexpectedly

    XMLWordPrintable

    Details

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

      Description

      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>

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                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