mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
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 29b36bb409
)
This commit is contained in:
parent
c45dd91f1b
commit
fab17293e4
4
ui/jquery.ui.dialog.js
vendored
4
ui/jquery.ui.dialog.js
vendored
@ -823,8 +823,8 @@ $.extend($.ui.dialog.overlay, {
|
|||||||
width: function() {
|
width: function() {
|
||||||
var scrollWidth,
|
var scrollWidth,
|
||||||
offsetWidth;
|
offsetWidth;
|
||||||
// handle IE 6
|
// handle IE
|
||||||
if ($.browser.msie && $.browser.version < 7) {
|
if ( $.browser.msie ) {
|
||||||
scrollWidth = Math.max(
|
scrollWidth = Math.max(
|
||||||
document.documentElement.scrollWidth,
|
document.documentElement.scrollWidth,
|
||||||
document.body.scrollWidth
|
document.body.scrollWidth
|
||||||
|
Loading…
Reference in New Issue
Block a user