form-js
form-js copied to clipboard
CSS overflow style not being applied when dropdown options are closed on Safari
- Click on dropdown
- Select an option
- Observe on Safari browser that if
overflow:hiddenstyle is applied on the "dropdown wrapper", it does not hide the "dropdown options container" as intended due to the browser not re-rending the element with the newoverflow:hiddenstyle.
There is a fix for this in CSS here, but may be useful to implement a JS fix in this package.
Sources:
http://stackoverflow.com/questions/3485365/how-can-i-force-webkit-to-redraw-repaint-to-propagate-style-changes http://mir.aculo.us/2009/01/11/little-javascript-hints-episode-3-force-redraw/ http://www.phpied.com/rendering-repaint-reflowrelayout-restyle/