Skip to content

Instantly share code, notes, and snippets.

@donabrams
Created July 16, 2012 20:50
Show Gist options
  • Select an option

  • Save donabrams/3124955 to your computer and use it in GitHub Desktop.

Select an option

Save donabrams/3124955 to your computer and use it in GitHub Desktop.
Force Chrome GUI reset
//Work around to force refresh of #pains in chrome
var pains = $("#pains");
console.log($("#pains").css("-webkit-transform"));
if ($("#pains").css("-webkit-transform") == "translateZ(1px)") {
$("#pains").css("-webkit-transform","none");
}
else {
$("#pains").css("-webkit-transform",'translateZ(1px)');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment