Opened 15 years ago

Closed 15 years ago

#4139 closed feature (notabug)

missing public method position

Reported by: andreas Owned by:
Priority: trivial Milestone: 1.7
Component: ui.dialog Version: 1.6rc6
Keywords: Cc:
Blocked by: Blocking:

Description

Im missing something like this:

position : function() {

this._position(this.options.position); return this;

},

a public method so i could do something like this

$(document).resize(function() {

$('#foo').dialog('position');

});

which moves the dialog to the correct position on resize.

Now i see this in the source of dialog:

the force parameter allows us to move modal dialogs to their correct position on open moveToTop: function(force, event) {

but doing $('#foo').dialog('moveToTop', true); doesnt move the dialog to the correct position.

Change History (1)

comment:1 Changed 15 years ago by Scott González

Milestone: TBD1.6
Resolution: invalid
Status: newclosed

The dialog position is an option. To change it's position you simply do:

$('#foo').dialog('option', 'position', whatever);
Note: See TracTickets for help on using tickets.