Opened 10 years ago
Closed 10 years ago
#9351 closed bug (fixed)
Dialog: Incorrect value for position option after resize
Reported by: | Valentin Plamadeala | 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;
}});
Change History (3)
comment:1 Changed 10 years ago by
Status: | new → open |
---|
comment:2 Changed 10 years ago by
Milestone: | none → 1.11.0 |
---|---|
Summary: | dialog('option','position') gives wrong position after resizing dialog from the left border → Dialog: Incorrect value for position option after resize |
Actually, even the array form is incorrect since that's now deprecated.
comment:3 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
Dialog: Use proper position data after drag and resize. Fixes #9351 - Dialog: Incorrect value for position option after resize.
Changeset: 16c375d374c5675265b5d8c5cd06c7170d0e8b58
Note: See
TracTickets for help on using
tickets.
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.