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

The height of vbox with vflex="1" exceeds a page's max height, unexpected scroll bar appears

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Normal Normal
    • None
    • 7.0.1
    • Components
    • Chrome

      Reproducing Steps:

      1. run the zul below:

      <zk>
      	<vbox vflex="1">
      		<button>My button</button>
      		<div vflex="1" style="background: yellow" />
      	</vbox>
      </zk>
      

      Expected:
      No scroll bar appears, because we set vflex="1". The height of vbox should only fit exactly the same size as the height of a page.

      Actual:
      The height of vbox with vflex="1" exceeds a page's max height, so unexpected scroll bar appears on a browser.

            noahhuang noahhuang
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: