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

a component doesn't resize correctly with a splitter in a vbox

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Normal
    • 8.6.0
    • 8.5.1.2
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.6.0 S1

    Description

      Steps to Reproduce

      1. load the zul

      <zk>
      	    		Problem here the horizontal splitter causes a wrong height for the panel and the vertical splitters works any how but not as expected.
      		<vbox spacing="0" width="100%" vflex="1" heights="50%,50%">
      			<panel title="Dashboard 2.1" border="normal" vflex="1" hflex="true">
      				<panelchildren>
      					<div>Dashboard components</div>
      				</panelchildren>
      			</panel>
      			<splitter/>
      			<panel title="Dashboard 2.2" border="normal" vflex="1" hflex="true">
      				<panelchildren>
      					<div>Dashboard components</div>
      				</panelchildren>
      			</panel>
      		</vbox>
      </zk>
      

      2. resize with the splitter (drag up or down)

      Current Result

      both panels shrink their height but don't match the height split by the splitter

      Expected Result

      the heights of 2 panels fill their parent's height.

      workaround

      enclose each child inside a <vbox> with <cell>

          <vbox spacing="0" width="100%" vflex="1" heights="50%,50%">
              <cell>
                  <panel title="Dashboard 2.1" border="normal" vflex="1" hflex="true">
                      <panelchildren>
                          <div>Dashboard components</div>
                      </panelchildren>
                  </panel>
              </cell>
              <splitter/>
              <cell>
                  <panel title="Dashboard 2.2" border="normal" vflex="1" hflex="true">
                      <panelchildren>
                          <div>Dashboard components</div>
                      </panelchildren>
                  </panel>
              </cell>
          </vbox>
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h