aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2011-05-18 17:12:01 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2011-05-18 17:12:01 +0200
commitfab17293e455f31435bf731007ee2badfed1fc31 (patch)
tree79878e5f2573ca24c232f41796778925593f90de
parentc45dd91f1b25a9edb8e168acf58e7224c46e0182 (diff)
downloadjquery-ui-fab17293e455f31435bf731007ee2badfed1fc31.tar.gz
jquery-ui-fab17293e455f31435bf731007ee2badfed1fc31.zip
Dialog: Changed IE6 overlay width adjustment to apply to all IE versions. Fixed #3623 - Opening a Modal Dialog shows a horizontal scroll bar
(cherry picked from commit 29b36bb4090632aaf306cc44591386c0263c9d27)
-rw-r--r--ui/jquery.ui.dialog.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index 56af35d41..2594a4b28 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -823,8 +823,8 @@ $.extend($.ui.dialog.overlay, {
width: function() {
var scrollWidth,
offsetWidth;
- // handle IE 6
- if ($.browser.msie && $.browser.version < 7) {
+ // handle IE
+ if ( $.browser.msie ) {
scrollWidth = Math.max(
document.documentElement.scrollWidth,
document.body.scrollWidth