Created
February 14, 2014 07:35
-
-
Save sampottinger/8997165 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Force a redraw on the rendering engine. | |
**/ | |
function runRedraw() | |
{ | |
document.body.style.display='none'; | |
document.body.offsetHeight; // no need to store this anywhere, the reference is enough | |
document.body.style.display='block'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment