I’m using the position attribute to fix a dialog in a certain position.
$('#red').dialog({autoOpen: false, resizable: false, draggable: false,
height: 600, width:550, position: [10, 150]});
I find that if the browser window is too small, the dialog doesn’t pop up at (10, 150), but higher.
Is there a way to make sure it pops up at an absolute position regardless of the window size?
Looks like the dialog widget is trying to keep the dialog visible and overriding your
positionsetting in the process. You could use theopenevent to force the issue. The structure of the dialog (without irrelevant classes and such) is like this:so you could use an
openhandler like this:Yes, it is a bit kludgy but it works and I don’t see anything in the API that allows you to control the dialog’s behavior when the dialog doesn’t fit in the viewable area.
Demo: http://jsfiddle.net/ambiguous/L9Deb/