Skip to content

Instantly share code, notes, and snippets.

@emaxerrno
Forked from madrobby/gist:1362093
Created September 27, 2013 17:21
Show Gist options
  • Save emaxerrno/6731962 to your computer and use it in GitHub Desktop.
Save emaxerrno/6731962 to your computer and use it in GitHub Desktop.
forceRerenderOnWebkit: ->
@el.parentNode.style.cssText += ';-webkit-transform:rotateZ(0deg)'
@el.parentNode.offsetHeight
@el.parentNode.style.cssText += ';-webkit-transform:none'
@emaxerrno
Copy link
Author

  if (placement){
    var t = document.createTextNode(' ');
    placement.appendChild(t);
    setTimeout(function() { placement.removeChild(t); }, 0);
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment