Opened 13 years ago

Closed 13 years ago

#9669 closed enhancement (invalid)

Change dijit.Dialog::_position() method to make it part of public interface

Reported by: Aleksey Rechinskiy Owned by:
Priority: high Milestone: tbd
Component: Dijit Version: 1.3.2
Keywords: dijit.Dialog Cc:
Blocked By: Blocking:



I'm looking for a way to deal with dijit.Dialog bug, that prevents two successive dialogs to work (#6759).

The main idea of a workaround I see, it to use one instance of Dialog to display two instances of Dialog's data: display the first data and then replace it when necessary with the second dialog's data. When the second data has to be hidden, restore the first data.

It is obvious that this scenario requires the Dialog's content to be changed during Dialog's run-time and that feature, in turn, requires the Dialog's frame to be resized and repositioned. If one is to use Dialog::attr('content', newContent) - it ok. This method changes the Dialog's size and position to fit new content. But I need slightly more: I want to be able to change only a special part of Dialog's content leaving most of other content (especially internal button widgets - I don't want to re-create them each time I need to change Dialog's content) intact. When I change some nodes inside of Dialog's content, I had to trigger Dialog's resize&reposition, but it looks like there is no "public" method for this action.

There is a Dialog::_position() method, marked with underscore as internal. It looks like the method I need and it works as expected, but I'm not sure if it is good idea to use it. Is there a real need to keep this method as internal? Could it be made a part of public interface?

If not, is there an other way to trigger Dialog resize&reposition after changing some internal nodes of Dialog's content?


Change History (2)

comment:1 Changed 13 years ago by Aleksey Rechinskiy

omg, I should really take a vacation... Its a Dialog::layout() method I need. How did I lose it?

I'm really sorry to bother, please, close this ticket.

comment:2 Changed 13 years ago by dante

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.