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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.4
    • Fix Version/s: 7.0.5
    • Component/s: Components
    • Labels:
      None

      Description

      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>
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: