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

Wrong left/top of parent positioned window

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.2
    • Fix Version/s: 6.5.2
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      As code and steps below

      1. move popup window, you'll see left/top displayed in parent window
      2. click minimize button of popup window
      3. click restore button

      The popup window still at the same position but left/top changed

      <zk>
      	<zscript><![CDATA[
      		void updateInfo(Window win, Label lLabel, Label tLabel) {
      			lLabel.setValue(win.getLeft());
      			tLabel.setValue(win.getTop());
      		}
      	]]></zscript>
      	<window title="parent win" border="normal">
      		<window id="rWin" title="relative win"
      			border="normal" mode="popup" position="parent"
      			minimizable="true" maximizable="true"
      			onCreate="updateInfo(self, lLabel, tLabel);"
      			onMove="updateInfo(self, lLabel, tLabel);"
      			onMaximize="updateInfo(self, lLabel, tLabel);"
      			onMinimize="updateInfo(self, lLabel, tLabel);">
      		</window>
      		Left: <label id="lLabel" />
      		Top: <label id="tLabel" />
      		<button label="restore">
      			<attribute name="onClick"><![CDATA[
      				rWin.setVisible(true);
      			]]></attribute>
      		</button>
      	</window>	
      </zk>
      

        Attachments

          Activity

            People

            Assignee:
            vincentjian vincentjian
            Reporter:
            benbai benbai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: