Permalink
Browse files

Dialog: Don't use deprecated offset option for .position(). Fixes #86…

…75 - Dialog: Position with pixels in array doesn't work with back compat disabled.
  • Loading branch information...
1 parent 568aec6 commit 11effcbd35c7a0b36af2a710b385d741f5849cbf @scottgonzalez scottgonzalez committed Oct 23, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.dialog.js
View
@@ -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( " " )
};
}

0 comments on commit 11effcb

Please sign in to comment.