Home / Tips / Programming languages / Scripting languages / JavaScript / jQuery UI Dialog freezes window scrollbar in Google Chrome

jQuery UI Dialog freezes window scrollbar in Google Chrome

jQuery
 
jQuery
  • Currently 0 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 0/5 (0 votes cast)

Thank you for rating!

You have already rated this page, you can only rate it once!

Your rating has been changed, thanks for rating!

Log in or create a user account to rate this page.


This problem was noticed in jQuery v1.8.3 and jQuery UI v1.9.2. The following code solves this:

$( '#dialog-box' ).dialog({
  modal: true,
  open: function( event, ui ) { 
    window.setTimeout( function () {
      $(document).unbind( 'mousedown.dialog-overlay' ).unbind( 'mouseup.dialog-overlay' );
    }, 100 );
  }
});

 

Read also

jQuery UI. Widgets. Dialog (Windows)

jQuery UI. Widgets. Dialog (Windows)

jQuery UI. Widgets. Datepicker (Calendar)

jQuery UI. Widgets. Datepicker (Calendar)

jQuery for beginners: selectors

jQuery for beginners: selectors

jQuery for beginners: AJAX

jQuery for beginners: AJAX

Post comment

basicuse.net
html5_css
106160485398655174790

Quick navigation

General navigation