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

listbox with percentage height doesn't have a vertical scrollbar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Later Later
    • None
    • 9.6.1
    • None
    • None

      Steps to Reproduce

      <zk>
          <zscript><![CDATA[
      ListModelList model = new ListModelList(Locale.getAvailableLocales());
          ]]></zscript>
          <div height="400px">
              <listbox model="${model}" height="80%">
                  <listhead>
                      <listheader label="dual listbox"/>
                  </listhead>
                  <template name="model">
                      <listitem>
                          <listcell label="${each.language}"/>
                      </listitem>
                  </template>
              </listbox>
          </div>
      </zk>
      

      Current Result

      no vertical scrollbar on the right

      Expected Result

      a vertical scrollbar exists on the right

      Debug Information

      • z-listbox-body doesn't have a height, could be done by height: calc(100% - headerHeight)

      Workaround

      • use vflex or rows

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

              Created:
              Updated:
              Resolved: