Opened 11 years ago

Closed 9 years ago

#6207 closed bug (invalid)

jQuery UI Resizable 1.8.4 _mouseStop gets wrong left, top-values in safari

Reported by: tomcatharry Owned by: tomcatharry
Priority: minor Milestone: 2.0.0
Component: ui.resizable Version: 1.8.4
Keywords: Cc:
Blocked by: Blocking:


jQuery UI Resizable 1.8.4

in safari 5.0.1 (windows xp) the getter self.element.css('left') returns 'auto' and then NaN with parseInt.

In consequence left and top is null and the css-setting doesn't work.


_mouseStop: function(event) {

var s = { width: (self.size.width - soffsetw), height: (self.size.height - soffseth) },                          
    left = (parseInt(self.element.css('left'), 10) + (self.position.left - self.originalPosition.left)) || null, 
    top = (parseInt(self.element.css('top'), 10) + ( - || null;     

if (!o.animate)                                             
    this.element.css($.extend(s, { top: top, left: left }));


Change History (3)

comment:1 Changed 9 years ago by Scott González

Milestone: TBD2.0.0

comment:2 Changed 9 years ago by tj.vantoll

Owner: set to tomcatharry
Status: newpending

Thanks for taking the time to contribute to the jQuery UI project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the git version of both jQuery UI and jQuery to ensure the issue still exists. To get you started, use this boilerplate: Open the link and click to "Fork" (in the top menu).

comment:3 Changed 9 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.