diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-01-28 03:06:43 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-01-28 03:06:43 +0000 |
commit | 65b063b0391b4d08b649935958b69b61ea53ffd7 (patch) | |
tree | 50de1a3838010f8ffa186e0395b3b773ece8ea22 /ui/jquery.ui.dialog.js | |
parent | dd92e1608185b45e7dc9ae9b3ac2a8b5b84ea19c (diff) | |
download | jquery-ui-65b063b0391b4d08b649935958b69b61ea53ffd7.tar.gz jquery-ui-65b063b0391b4d08b649935958b69b61ea53ffd7.zip |
Prevent the default styles for resizable elements from totally killing dialog positioning (finally).
Fixes #5084 - 2 dialogs pos false on close.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 98dfd3cf9..a0be847d4 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -352,6 +352,9 @@ $.widget("ui.dialog", { handles = (handles === undefined ? this.options.resizable : handles); var self = this, options = self.options, + // .ui-resizable has position: relative defined in the stylesheet + // but dialogs have to use absolute or fixed positioning + position = self.uiDialog.css('position'), resizeHandles = typeof handles == 'string' ? handles : 'n,e,s,w,se,sw,ne,nw'; @@ -380,6 +383,7 @@ $.widget("ui.dialog", { $.ui.dialog.overlay.resize(); } }) + .css('position', position) .find('.ui-resizable-se').addClass('ui-icon ui-icon-grip-diagonal-se'); }, |