jquery UI dialog position does not like spacing

I am using jquery dialog and wanted to set it about 100px from the top of the window. So I set the position like this:

position: { my: "top+100", at: "top" }

But then while doing some formatting I ended up with this:

$("#divselector").dialog({
            autoOpen: false,
            modal: true,
            minHeight: 300,
            minWidth: 800,
            dialogClass: "customDialog",
            appendTo: $("form:first"),
            position: { my: "top + 100", at: "top" }
        });

All of  a sudden it stopped working. I was out of clue why it isn't working.

Did couple Ctrl+Z and tried and started working.

Looks like the top+100 shouldn't have any space. With spacing, it doesn't work.

Documentation doesn't say anything about it.

31 Comments

Add a Comment

As it will appear on the website

Not displayed

Your website