<div>Hi all.<br></div><div><br></div><div>I guess that the JQWDialog is inconsistent informing the position of dialog in position: and onDragStop: methods.</div><div>I check in Seaside-3.0.6-OneClick and <a href="http://jenkins.lukas-renggli.ch/job/Seaside%203.0/lastSuccessfulBuild/artifact/Seaside-3.0-OneClick.zip">http://jenkins.lukas-renggli.ch/job/Seaside%203.0/lastSuccessfulBuild/artifact/Seaside-3.0-OneClick.zip</a><br>
</div><div><br></div><div>To reproduce the problem:</div><div><br></div><div>1) Add position instance variable to JQUiFunctionalTest and modify >>renderWindowOn: to look like this :</div><div><br></div><div>script: (html jQuery new dialog<br>
                 position: position; "line added"<br>                  onDragStop: (html jQuery ajax callbackDraggable: [ :event | " line added"<br>                          position := (event at: #position). position inspect ]);         "line added"<br>
                 title: 'Vegetables';<br>                  autoOpen: false;<br>                  addButton: 'Close' do: html jQuery new dialog close);<br>          with: [ html unorderedList list: self vegetables ].</div><div><br></div><div>2) Go to <a href="http://localhost:8080/javascript/jquery-ui/dialogwidget">http://localhost:8080/javascript/jquery-ui/dialogwidget</a></div>
<div>3) Press button Open Window and move de Dialog to bottom-left corner.</div><div>4) Refresh the page and press again button Open Window</div><div><br></div><div>The dialog show with de left-top attributes changed each other.</div>
<div><br></div><div>If you see the position in inspector that is opened when drag stop, the callbackDraggable: inform top@left, but in the comment of JQDialog>>position: method say that left@top are expected as parameter:</div>
<div>" 2) an array containing an x,y coordinate pair in pixel offset from left, top corner of viewport (e.g. [350,100]) "<br></div><div><br></div><div>The fact, if you change the coordinates of position with transposed the problem is solved:</div>
<div>onDragStop: (html jQuery ajax callbackDraggable: [ :event |<br>                          position := (event at: #position) transposed. position inspect ]);</div><div><br></div><div>And the same problema in onResizeStop with the position (I have split the coordinates for size). Add width and height ivars and next code for reproduce problem:</div>
<div>                        onResizeStop: (html jQuery ajax callbackResizable: [ :event | <br>                          position := event at: #position.<br>                          width := (event at: #size) x.<br>                          height := (event at: #size) y ]); </div><div><br></div><div>
Regards.</div>