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

a component's width doesn't fill up its parent with hflex="1" when there is a scrollbar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Normal Normal
    • None
    • 8.0.3
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.0.4 S1

      steps to reproduce

      1. run the attached file, 3458.zul

      actual result

      There is an extra space between the right side of the window and the right edge of the page.

      Since we specify hflex="1", the window's width should extend to fill the page's width.

      expected result

      There should be no space between the right side of the window and the right edge of the page.

      debug info

      1. overflow.zul is the user's original case
      2. resize a browser's width, the window's width will fill up the page's width

      workaround

      • If you use modern browser that supports css flexbox , you can specify flex-grow on the window e.g.
            <style>
        	.flex{
        		flex-grow: 1;
        	}    
            </style>
        <window contentStyle="overflow: auto" sclass="flex">
        
      • specify width="100%" on parent components.

        1. 3458.zul
          0.7 kB
        2. 3458-workaround.zul
          0.7 kB
        3. 3458-workaround2.zul
          1 kB
        4. expected.png
          expected.png
          31 kB
        5. extraSpaceOnRight.png
          extraSpaceOnRight.png
          31 kB
        6. overflow.zul
          1 kB

            wenninghsu wenninghsu
            hawk hawk
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h