Opened 7 years ago

Closed 7 years ago

#16172 closed defect (fixed)

Dialog: resizing not correct

Reported by: Alexander Kläser Owned by: bill
Priority: undecided Milestone: 1.9
Component: Dijit Version: 1.8.1
Keywords: Cc:
Blocked By: Blocking:

Description

We encountered Problems with a custom Dialog-class inheriting from dijit.Dialog(). The content of the Dialog is dynamically updated after prompting the dialog. Calling resize() would not work correctly, as it would first reposition the dialog and then resize it. Putting it the other way round (first a call to _size() and then _position()) does the job correctly.

Change History (2)

comment:1 Changed 7 years ago by bill

Milestone: tbd1.9
Status: newassigned
Summary: Resizing of dijit.Dialog() not correctDialog: resizing not correct

That makes sense. Dialog.show() calls:

this._size();
this._position();

so presumably resize() can do that order too.

comment:2 Changed 7 years ago by bill

Resolution: fixed
Status: assignedclosed

In [29837]:

Make Dialog.resize() work correctly when the Dialog contents have changed size, by first resizing the Dialog and then positioning it. Fixes #16172 !strict.

Note: See TracTickets for help on using tickets.