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

crea’s picture

Subscribing.

dsnopek’s picture

Title: customDialogOptions position » Allow users to specify custom position for the dialog
Version: 6.x-1.7 » 7.x-1.x-dev
Component: Documentation » Code
Category: Support request » Feature request
Issue summary: View changes

Unfortunately, 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.