Skip to main content

Search and Top Navigation

#4139 closed feature (notabug)

Opened February 13, 2009 11:02AM UTC

Closed February 15, 2009 02:52PM UTC

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.

Attachments (0)
Change History (1)

Changed February 15, 2009 02:52PM UTC by scottgonzalez comment:1

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);