Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: sky/framework/sky-icon.sky

Issue 961873004: sky-element stocks demo: add splashes and highlights to menu items (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/framework/sky-drawer.sky ('k') | sky/framework/sky-menu-item.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/sky-icon.sky
diff --git a/sky/framework/sky-icon.sky b/sky/framework/sky-icon.sky
index e526c8ca1df66b85318d3ecec94b1ee488b5988a..dd2a10f7f656e64ea1ef3dc92ee892250c3662ad 100644
--- a/sky/framework/sky-icon.sky
+++ b/sky/framework/sky-icon.sky
@@ -45,8 +45,10 @@ class SkyIcon extends SkyElement {
}
void sizeChanged(double oldValue, double newValue) {
- if (_img != null)
+ if (_img != null) {
_setSize(newValue.floor());
+ _setSrc(type, newValue.floor());
+ }
}
}
« no previous file with comments | « sky/framework/sky-drawer.sky ('k') | sky/framework/sky-menu-item.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698