I assume my problem is syntax and nothing else; the outcome is that I fail to position the iframe as I'd like. Would you provide an example of defining 'position' in customDialogOptions? Or does it go elsewhere?
Here's the failing code:
var modalOptions = {
url: url,
autoFit: false,
draggable: false,
width: 700,
height: 500,
customDialogOptions: ({
// This does work.
modal: false,
// But this doesn't.
position: 'top',
}),
};
I'd be even happier with an example of an array position (e.g. [350,100]) .
Many thanks
Comments
Comment #1
crea commentedSubscribing.
Comment #2
dsnopekUnfortunately, I don't think this is possible with the current code. It's overriding the jQuery UI 'position' option to create the dialog off screen and then has some custom code for positioning it in the center. So, whatever you give there will be overridden.
However, this would be a great feature! Let's address it first in the Drupal 7 version.