Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
polymer-ui-icon: set background-size to make 2x image works
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Oct 25, 2013
1 parent 630eeda commit 6dac5f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions polymer-ui-icon/polymer-ui-icon.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
updateIcon: function() {
if (this.src) {
this.style.backgroundPosition = 'center';
this.style.backgroundSize = this.size + 'px ' + this.size + 'px';
} else {
this.style.backgroundPosition = (this.bx + 'px') + ' ' + (this.by + 'px');
}
Expand Down

0 comments on commit 6dac5f3

Please sign in to comment.