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

vflex min causes an unnecessary vertical scrollbar on a listbox

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.5.8.1, 7.0.8, 8.6.1
    • Fix Version/s: 8.6.2
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:
    • gh.sprint.customfield.default.name:
      ZK 8.6.2 S1, ZK 8.6.2 S2

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

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