Home > Web Front-end > JS Tutorial > Solution to the scroll bar appearing in jquery ui dialog ie8_jquery

Solution to the scroll bar appearing in jquery ui dialog ie8_jquery

WBOY
Release: 2016-05-16 18:14:41
Original
1247 people have browsed it

This problem appeared in UI1.7 and has not been fixed in UI1.8. I really don’t know what to say.

JQUI development post for submitting bugs: http://dev.jqueryui.com/ticket /3623 The solution is quite unscientific~

My solution, I personally feel better than that one, because I only hide the horizontal scroll bar, haha

Attached is the modified code:

Modify: jquery.ui.dialog.js

Copy code The code is as follows:

var $el = (this.oldInstances.pop() || $('
').addClass('ui-widget-overlay'))
.appendTo (document.body)
.css({
width: this.width(),
height: this.height()
});
#Add below this
($.browser.msie && $.browser.version == '8.0')?$('body').css('overflow-x','hidden'):'';

Modification 2:
Copy code The code is as follows:

this.maxZ = maxZ;
#Add
($.browser.msie && $.browser.version == '8.0')?$('body').css(' overflow-x','auto'):'';
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template