Skip to main content

Search and Top Navigation

#9351 closed bug (fixed)

Opened May 31, 2013 04:08PM UTC

Closed May 31, 2013 07:01PM UTC

Dialog: Incorrect value for position option after resize

Reported by: omuleanu Owned by:
Priority: minor Milestone: 1.11.0
Component: ui.dialog Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:
Description

http://jsbin.com/ufubez/2/edit

when resizing a dialog from the left side the position of it will change but if we have:

.dialog({

resizeStop:function(e,ui){

var pos = $('#dialog').dialog('option','position'); gives old position

var pos1 = ui.position: gives new position;

}});

Attachments (0)
Change History (3)

Changed May 31, 2013 06:01PM UTC by scottgonzalez comment:1

status: newopen

Those two values don't actually represent the same thing, but the idea is right. We should be updating the position option after a resize.

Changed May 31, 2013 07:00PM UTC by scottgonzalez comment:2

milestone: none1.11.0
summary: dialog('option','position') gives wrong position after resizing dialog from the left borderDialog: Incorrect value for position option after resize

Actually, even the array form is incorrect since that's now deprecated.

Changed May 31, 2013 07:01PM UTC by Scott González comment:3

resolution: → fixed
status: openclosed

Dialog: Use proper position data after drag and resize. Fixes #9351 - Dialog: Incorrect value for position option after resize.

Changeset: 16c375d374c5675265b5d8c5cd06c7170d0e8b58