Jquery UI dialog IE8 scroll bar Solution

Source: Internet
Author: User

This problem occurs in ui1.7 and has not been fixed in ui1.8. I really don't know what to say ..

Jqui development submit bug post: http://dev.jqueryui.com/ticket/3623 solution is rather unscientific ~

My solution is better than that, because I only hide the horizontal scroll bar.

Attached with ModifiedCode:

Modify: jquery. UI. Dialog. js
Copy codeThe Code is as follows: var $ El = (this. oldinstances. pop () | $ ('<div> </div> '). addclass ('ui-widget-overlay '))
. Appendto (document. Body)
. CSS ({
Width: This. Width (),
Height: This. Height ()
});
# Add
($. Browser. MSIE & $. browser. Version = '8. 0 ')? Detail ('body'detail .css ('overflow-x', 'hiddy '):'';

Amendment 2:
Copy codeThe Code is as follows: This. maxz = maxz;
# Add
($. Browser. MSIE & $. browser. Version = '8. 0 ')? Detail ('body'detail .css ('overflow-x', 'auto '):'';

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.