<div>I look at JQDialog API and I see that left@top that say in position: method is fine:<br></div><div><a href="http://docs.jquery.com/UI/Dialog#option-position">http://docs.jquery.com/UI/Dialog#option-position</a></div><div>
<br></div><div>Maybe the callbacks are bad for position?</div><div><br></div><br><div class="gmail_quote">El 18 de febrero de 2012 11:16, Gastón Dall&#39; Oglio <span dir="ltr">&lt;<a href="mailto:gaston.dalloglio@gmail.com">gaston.dalloglio@gmail.com</a>&gt;</span> escribió:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>... I forget to send width: and height: to dialog in last code:<br></div><div><br></div><div><div class="im">        script: (html jQuery new dialog<br>
                    position: position;<br></div>                    width: width;<br>                    height: height;</div><div>    ......</div>
<div><br></div><br><div class="gmail_quote">El 18 de febrero de 2012 11:10, Gastón Dall&#39; Oglio <span dir="ltr">&lt;<a href="mailto:gaston.dalloglio@gmail.com" target="_blank">gaston.dalloglio@gmail.com</a>&gt;</span> escribió:<div>
<div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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" target="_blank">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 &gt;&gt;renderWindowOn: to look like this :</div><div><br></div><div>script: (html jQuery new dialog<br>


                   position: position;      &quot;line added&quot;<br>                   onDragStop: (html jQuery ajax callbackDraggable: [ :event |       &quot; line added&quot;<br>                               position := (event at: #position). position inspect ]);             &quot;line added&quot;<br>


                   title: &#39;Vegetables&#39;;<br>                   autoOpen: false;<br>                   addButton: &#39;Close&#39; 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" target="_blank">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&gt;&gt;position: method say that left@top are expected as parameter:</div>


<div>&quot; 2) an array containing an x,y coordinate pair in pixel offset from left, top corner of viewport (e.g. [350,100]) &quot;<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>
</blockquote></div></div></div><br>
</blockquote></div><br>