<div>Thanks Johan.<br></div><div><br></div><div>Regards.</div><div><br></div><br><div class="gmail_quote">El 20 de febrero de 2012 12:29, Johan Brichau <span dir="ltr">&lt;<a href="mailto:johan@inceptive.be">johan@inceptive.be</a>&gt;</span> escribió:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Gaston,<br>
<br>
You are right... the top,left attributes are mapped as follows:<br>
top -&gt; x<br>
left -&gt; y<br>
<br>
It makes more sense to map them as:<br>
<br>
top -&gt; y<br>
left -&gt; x<br>
<br>
I just ran into the same issue last week.<br>
<br>
In my opinion it&#39;s a bug and I created an issue:<br>
<a href="http://code.google.com/p/seaside/issues/detail?id=715" target="_blank">http://code.google.com/p/seaside/issues/detail?id=715</a><br>
<br>
Let&#39;s see what the core dev team thinks first ;-)<br>
<br>
Johan<br>
<div><div class="h5"><br>
On 18 Feb 2012, at 15:42, Gastón Dall&#39; Oglio wrote:<br>
<br>
&gt; I look at JQDialog API and I see that left@top that say in position: method is fine:<br>
&gt; <a href="http://docs.jquery.com/UI/Dialog#option-position" target="_blank">http://docs.jquery.com/UI/Dialog#option-position</a><br>
&gt;<br>
&gt; Maybe the callbacks are bad for position?<br>
&gt;<br>
&gt;<br>
&gt; El 18 de febrero de 2012 11:16, Gastón Dall&#39; Oglio &lt;<a href="mailto:gaston.dalloglio@gmail.com">gaston.dalloglio@gmail.com</a>&gt; escribió:<br>
&gt; ... I forget to send width: and height: to dialog in last code:<br>
&gt;<br>
&gt; script: (html jQuery new dialog<br>
&gt;           position: position;<br>
&gt;           width: width;<br>
&gt;           height: height;<br>
&gt;     ......<br>
&gt;<br>
&gt;<br>
&gt; El 18 de febrero de 2012 11:10, Gastón Dall&#39; Oglio &lt;<a href="mailto:gaston.dalloglio@gmail.com">gaston.dalloglio@gmail.com</a>&gt; escribió:<br>
&gt;<br>
&gt; Hi all.<br>
&gt;<br>
&gt; I guess that the JQWDialog is inconsistent informing the position of dialog in position: and onDragStop: methods.<br>
&gt; 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>

&gt;<br>
&gt; To reproduce the problem:<br>
&gt;<br>
&gt; 1) Add position instance variable to JQUiFunctionalTest and modify &gt;&gt;renderWindowOn: to look like this :<br>
&gt;<br>
&gt; script: (html jQuery new dialog<br>
&gt;          position: position;      &quot;line added&quot;<br>
&gt;          onDragStop: (html jQuery ajax callbackDraggable: [ :event |       &quot; line added&quot;<br>
&gt;          position := (event at: #position). position inspect ]);           &quot;line added&quot;<br>
&gt;          title: &#39;Vegetables&#39;;<br>
&gt;          autoOpen: false;<br>
&gt;          addButton: &#39;Close&#39; do: html jQuery new dialog close);<br>
&gt;         with: [ html unorderedList list: self vegetables ].<br>
&gt;<br>
&gt; 2) Go to <a href="http://localhost:8080/javascript/jquery-ui/dialogwidget" target="_blank">http://localhost:8080/javascript/jquery-ui/dialogwidget</a><br>
&gt; 3) Press button Open Window and move de Dialog to bottom-left corner.<br>
&gt; 4) Refresh the page and press again button Open Window<br>
&gt;<br>
&gt; The dialog show with de left-top attributes changed each other.<br>
&gt;<br>
&gt; 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:<br>
&gt; &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>
&gt;<br>
&gt; The fact, if you change the coordinates of position with transposed the problem is solved:<br>
&gt; onDragStop: (html jQuery ajax callbackDraggable: [ :event |<br>
&gt;          position := (event at: #position) transposed. position inspect ]);<br>
&gt;<br>
&gt; 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:<br>
&gt; onResizeStop: (html jQuery ajax callbackResizable: [ :event |<br>
&gt;           position := event at: #position.<br>
&gt;           width := (event at: #size) x.<br>
&gt;           height := (event at: #size) y ]);<br>
&gt;<br>
&gt; Regards.<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div><br>