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

Wrong left/top of parent positioned window

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 6.5.2
    • 6.5.2
    • None
    • Security Level: Jimmy
    • None

      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>
      

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

              Created:
              Updated:
              Resolved: