Opened 4 years ago

Closed 4 years ago

#9351 closed bug (fixed)

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;

}});

Change History (3)

comment:1 Changed 4 years ago by scottgonzalez

  • Status changed from new to open

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.

comment:2 Changed 4 years ago by scottgonzalez

  • Milestone changed from none to 1.11.0
  • Summary changed from dialog('option','position') gives wrong position after resizing dialog from the left border to Dialog: Incorrect value for position option after resize

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

comment:3 Changed 4 years ago by Scott González

  • Resolution set to fixed
  • Status changed from open to 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.