As you can see on this link, http://jsbin.com/ozapol/9 ,
Jquery disables the scrollbars on some versions of IE and the latest version of chrome. (I didnt try any other yet...)
Is there a way to keep scrollbars enabled to be able to scroll through a long long dialog ?
Thank you ! Bye
Nice solution for Internet Explorer (Thanks to jk.)
html {overflow-y : scroll}
Brutal workaround for Chrome (Thanks to jk.)
On Chrome, JqueryUI Hijacks mouse events on the scrollbars. This looks like a bug that is referred in the links above. In order to remove those bindings, you have to unbind events each time you create a modal dialog :
$("#longdialog").dialog({
open: function(event, ui) {
window.setTimeout(function() {
jQuery(document).unbind('mousedown.dialog-overlay')
.unbind('mouseup.dialog-overlay');
}, 100);
},
modal:true
});
There is the final example : http://jsbin.com/ujagov/2
Links to bug reports :
- http://bugs.jqueryui.com/ticket/4671
- http://wiki.jqueryui.com/w/page/34725121/Visual-Test-Page-Cleanup