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

The nested hflex size is not up to date when the new child added inside a hlayout or vlayout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.5
    • 7.0.4
    • Components
    • None

      for example,

      <zk>
      <style>
      .blue {
      	border: solid 1px blue;
      }
      .red {
      	border: solid 1px red;
      }
      .green {
      	border: solid 1px green;
      }
      .black {
      	border: solid 1px black;
      }
      </style>
      Please click the button "add newChild" and the size fo black area inside blue area should be up to date
      <hlayout id="container" width="580">
      	<div  hflex="1">
      	<div class="blue">
      	<div class="black" hflex="1">
      	blue
      	</div>
      	</div>
      	</div>
      	<div class="red" hflex="1">
      	red
      	</div>
      	<div class="green" hflex="1">
      	green
      	</div>
      </hlayout>
      <button label="add newChild">
      	<attribute name="onClick">
      	
      	container.appendChild(container.getLastChild().clone());
      	</attribute>
      </button>
      </zk>
      

            hanhsu hanhsu
            jumperchen jumperchen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: