Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save arestov/406276 to your computer and use it in GitHub Desktop.
Save arestov/406276 to your computer and use it in GitHub Desktop.
// Forcing Opera full page reflow/repaint to fix page draw bugs
function forceOperaRepaint() {
if (window.opera) {
var bs = document.body.style;
bs.position = 'relative';
setTimeout(function() {
bs.position = 'static';
}, 1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment