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

When a window is invisible at first, its top (or left) attribute takes no effect even we turn the window to be visible.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.0.11, 6.0.2, 6.5.0
    • Fix Version/s: 6.0.3, 5.0.12, 6.5.1
    • Component/s: Components
    • Labels:

      Description

      Reproducing step:

      1. Use the following zul.

      <zk>
      <window id="win1" title="win1" mode="overlapped"  width="100px" left="50px" visible="false">
      </window>
      <window id="win2" mode="overlapped"  width="100px" left="150px" title="win2">
      </window>
      <separator height="400px"/>
      <button label="show" onClick="win1.visible=true;win2.visible=true"/>
      <button label="hide" onClick="win1.visible=false;win2.visible=false"/>
      </zk>
      
      

      win1 is an invisible window whose "left" attribute is set.
      win2 is a visible window whose "left" attribute is set.

      2. click "show" button.

      a reproducing case in fiddle:
      http://zkfiddle.org/sample/3qp9rgb/2-test-overlapped-window

      Expected Result

      "win1" is 50px left to screen's left border.

      Actual Result

      "win1" is at screen's left border.

      Extra Test Result:

      You can set "top", and you'll also get the same result. The invisible window's position doesn't change.
      If we set "left" and "top" attributes at them same time, the invisible window location will be as expected.

        Attachments

          Activity

            People

            • Assignee:
              MontyPan MontyPan
              Reporter:
              hawk hawk
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: