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

AfterSizeEvent doesn't return a correct size of a Window component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 10.0.0
    • 10.0.0.FL
    • None
    • None

      Steps to Reproduce

      1. Run the following code
      <zk>
       <window title="After Size Event Test" border="normal" width="300px" height="300px">
          <attribute name="onAfterSize"> lb1.setValue("onAfterSize " + event.getTarget() + " width: " + event.getWidth() + " height: " + event.getHeight()); </attribute>
          <label id="lb1"/>
       </window>
      </zk> 

      Current Result

      width: 290 height: 258

      Expected Result

      Should be the same as the assignment.

      width: 300 height: 300

       Debug Information

      https://github.com/zkoss/zk/blob/df7529916e106e36784f4d42fec7c104948c665e/zk/src/main/resources/web/js/zk/widget.ts#L3638

      should not use getCaveNode()

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

              Created:
              Updated:
              Resolved: