Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery UI modal dialog background doesn't darken bottom of page background when scrollbars are present

I have a jQuery UI modal dialog on http://www.citizenshipworks.org/ that appears when you click on the Go button to the right of 'Enter your mobile number to receive text alerts'. (You may leave the text input field blank).

The issue is if your viewport has scrollbars and you aren't at the top of the page, the background only darkens the portion that would be visible if you are at the top of the page. This seems to happen on all browsers. Thanks in advance!

like image 256
Mark Avatar asked Mar 24 '23 23:03

Mark


1 Answers

Just set CSS position to fixed for .ui-widget-overlay:

.ui-widget-overlay{position:fixed}
like image 91
A. Wolff Avatar answered Apr 25 '23 14:04

A. Wolff