Skip to content

Commit 78ad8e4

Browse files
committed
Dialog: Set top and left properties in the default styles to avoid a bug in core. Fixes #8741 - Dialog: dialog with position:fixed goes offscreen when opening after scrolling down since v 1.9.0.
1 parent cdccd99 commit 78ad8e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/base/jquery.ui.dialog.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* http://docs.jquery.com/UI/Dialog#theming
1010
*/
11-
.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
11+
.ui-dialog { position: absolute; top: 0; left: 0; padding: .2em; width: 300px; overflow: hidden; }
1212
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
1313
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
1414
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }

0 commit comments

Comments
 (0)