From 6dac5f36a5fb2ee04c5309f7e6693f5573050f81 Mon Sep 17 00:00:00 2001 From: frankiefu Date: Fri, 25 Oct 2013 12:15:17 -0700 Subject: [PATCH] polymer-ui-icon: set background-size to make 2x image works --- polymer-ui-icon/polymer-ui-icon.html | 1 + 1 file changed, 1 insertion(+) diff --git a/polymer-ui-icon/polymer-ui-icon.html b/polymer-ui-icon/polymer-ui-icon.html index 87817be..0ca34fa 100644 --- a/polymer-ui-icon/polymer-ui-icon.html +++ b/polymer-ui-icon/polymer-ui-icon.html @@ -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'); }