Skip to content

Commit

Permalink
Merge pull request hyperandroid#51 from karlwestin/Box2D-CSS-Background
Browse files Browse the repository at this point in the history
Actor CSS: Made background mode TR_NONE work ...
  • Loading branch information
hyperandroid committed Mar 14, 2012
2 parents 8838dbb + 77744ea commit 3971884
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/model/actorCSS.js
Expand Up @@ -395,6 +395,8 @@
this.transformation= it;
if ( it===CAAT.SpriteImage.prototype.TR_FIXED_TO_SIZE ) {
this.style( 'background-size', '100%' );
} else if (it===CAAT.SpriteImage.prototype.TR_NONE) {
this.style( 'background-size', 'auto' );
}
return this;
},
Expand Down

0 comments on commit 3971884

Please sign in to comment.