Dialog: Don't use deprecated offset option for .position(). Fixes #8675 - Dialog: Position with pixels in array doesn't work with back compat disabled.

This commit is contained in:
Scott González 2012-10-23 14:49:16 -04:00
parent 568aec62d9
commit 11effcbd35

View File

@ -509,9 +509,9 @@ $.widget("ui.dialog", {
});
position = {
my: myAt.join( " " ),
at: myAt.join( " " ),
offset: offset.join( " " )
my: myAt[0] + (offset[0] < 0 ? offset[0] : "+" + offset[0]) + " " +
myAt[1] + (offset[1] < 0 ? offset[1] : "+" + offset[1]),
at: myAt.join( " " )
};
}