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.


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.3, 5.0.12, 6.5.1
    • 5.0.11, 6.0.2, 6.5.0
    • Components

      Reproducing step:

      1. Use the following zul.

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

      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:

      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.

            MontyPan MontyPan
            hawk hawk
            1 Vote for this issue
            1 Start watching this issue