Skip to content

Instantly share code, notes, and snippets.

@borismus
Created March 2, 2012 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borismus/1954448 to your computer and use it in GitHub Desktop.
Save borismus/1954448 to your computer and use it in GitHub Desktop.
positionView: function() {
console.log('positioning');
// TODO: Fix this nonsense.
// Check for the existence of this.element because when the transition
// value initially changes, the element doesn't actually exist!
if (this.get('element')) {
this.get('element').style.webkitTransform =
'translate(0, ' + this.get('transition') + 'px)';
}
}.observes('transition')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment