<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"><<a href="mailto:johan@inceptive.be">johan@inceptive.be</a>></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 -> x<br>
left -> y<br>
<br>
It makes more sense to map them as:<br>
<br>
top -> y<br>
left -> x<br>
<br>
I just ran into the same issue last week.<br>
<br>
In my opinion it'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'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' Oglio wrote:<br>
<br>
> I look at JQDialog API and I see that left@top that say in position: method is fine:<br>
> <a href="http://docs.jquery.com/UI/Dialog#option-position" target="_blank">http://docs.jquery.com/UI/Dialog#option-position</a><br>
><br>
> Maybe the callbacks are bad for position?<br>
><br>
><br>
> El 18 de febrero de 2012 11:16, Gastón Dall' Oglio <<a href="mailto:gaston.dalloglio@gmail.com">gaston.dalloglio@gmail.com</a>> escribió:<br>
> ... I forget to send width: and height: to dialog in last code:<br>
><br>
> script: (html jQuery new dialog<br>
> position: position;<br>
> width: width;<br>
> height: height;<br>
> ......<br>
><br>
><br>
> El 18 de febrero de 2012 11:10, Gastón Dall' Oglio <<a href="mailto:gaston.dalloglio@gmail.com">gaston.dalloglio@gmail.com</a>> escribió:<br>
><br>
> Hi all.<br>
><br>
> I guess that the JQWDialog is inconsistent informing the position of dialog in position: and onDragStop: methods.<br>
> 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>
><br>
> To reproduce the problem:<br>
><br>
> 1) Add position instance variable to JQUiFunctionalTest and modify >>renderWindowOn: to look like this :<br>
><br>
> 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 ].<br>
><br>
> 2) Go to <a href="http://localhost:8080/javascript/jquery-ui/dialogwidget" target="_blank">http://localhost:8080/javascript/jquery-ui/dialogwidget</a><br>
> 3) Press button Open Window and move de Dialog to bottom-left corner.<br>
> 4) Refresh the page and press again button Open Window<br>
><br>
> The dialog show with de left-top attributes changed each other.<br>
><br>
> 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:<br>
> " 2) an array containing an x,y coordinate pair in pixel offset from left, top corner of viewport (e.g. [350,100]) "<br>
><br>
> The fact, if you change the coordinates of position with transposed the problem is solved:<br>
> onDragStop: (html jQuery ajax callbackDraggable: [ :event |<br>
> position := (event at: #position) transposed. position inspect ]);<br>
><br>
> 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>
> onResizeStop: (html jQuery ajax callbackResizable: [ :event |<br>
> position := event at: #position.<br>
> width := (event at: #size) x.<br>
> height := (event at: #size) y ]);<br>
><br>
> Regards.<br>
><br>
><br>
</div></div>> _______________________________________________<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>
<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>