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

The margin should not increase a component's width with hflex="min"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.2
    • 8.0.1
    • None
    • Security Level: Jimmy
    • None

      steps to reproduce

      1. load the zul below
        <zk>
        	<div style="border:solid 1px" hflex="min">
        		<label value="some longer content" />
        	</div>
        	<div style="border:solid 1px; margin:15px" hflex="min">
        		<label value="some longer content" />
        	</div>
        	<groupbox title="parent groupbox" closable="false" hflex="min">
        		<label value="some longer content" />
        	</groupbox>
        	<groupbox title="parent groupbox" closable="false"
        		style="margin:15px" hflex="min">
        		<label value="some longer content" />
        	</groupbox>
        </zk>
        

      result


      the 2nd Div's width increases 30px for it has 15px margin. The same thing happens on the 2nd Groupbox.

      expected

      Both Divs have the same width. Because margin is the space added outside the border, it should not affect the width.

      debug info

      • this issue doesn't happen in 8.0.0

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

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours
                6h