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

vflex min causes an unnecessary vertical scrollbar on a listbox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 8.6.2
    • 6.5.8.1, 7.0.8, 8.6.1
    • Components
    • Security Level: Jimmy
    • ZK 8.6.2 S1, ZK 8.6.2 S2

      Steps to Reproduce

      1. run

      	<listbox id="box" vflex="min">
      		<listhead sizable="true">
      			<listheader label="name" sort="auto" />
      			<listheader label="gender" sort="auto" />
      		</listhead>
      		<listitem>
      			<listcell label="Mary" />
      			<listcell label="FEMALE" />
      		</listitem>
      		<listitem>
      			<listcell label="John" />
      			<listcell label="MALE" />
      		</listitem>
      		<listitem>
      			<listcell label="Jane" />
      			<listcell label="FEMALE" />
      		</listitem>
      		<listitem>
      			<listcell label="Henry" />
      			<listcell label="MALE" />
      		</listitem>
      	</listbox>
      

      Current Result

      an unnecessary vertical scrollbar on the right

      Expected Result

      no that scrollbar

      Debug Information

      vflex only counts widgets' height, without scrollbar. But a scrollbar occupied space.
      (e.g. counts listhead and 4 listitems)

      Workaround

      remove vflex=min

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

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d