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

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

XMLWordPrintable

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

      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>
      

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

              Created:
              Updated:
              Resolved:

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