Skip to content
Permalink
Browse files

Prevent the default styles for resizable elements from totally killin…

…g dialog positioning (finally).

Fixes #5084 - 2 dialogs pos false on close.
  • Loading branch information
scottgonzalez committed Jan 28, 2010
1 parent dd92e16 commit 65b063b0391b4d08b649935958b69b61ea53ffd7
Showing with 4 additions and 0 deletions.
  1. +4 −0 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');
},

0 comments on commit 65b063b

Please sign in to comment.
You can’t perform that action at this time.