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

Unified Diff: sky/examples/style/toolbar-layout.sky

Issue 725203007: Specs: make sure all layout/paint/hitTest APIs are relative to the right coordinate space (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/examples/style/hex-layout.sky ('k') | sky/specs/style.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/style/toolbar-layout.sky
diff --git a/sky/examples/style/toolbar-layout.sky b/sky/examples/style/toolbar-layout.sky
index b0f59644bbdaf5adca5a56229a03af82963f8d1c..07843350f9bbdcc7ef23049c08fb5a761098d96c 100644
--- a/sky/examples/style/toolbar-layout.sky
+++ b/sky/examples/style/toolbar-layout.sky
@@ -195,7 +195,8 @@ SKY MODULE
canvas.save();
try {
canvas.beginPath();
- canvas.rect(child.x, child.y, child.width, child.height);
+ canvas.translate(child.x, child.y);
+ canvas.rect(0, 0, child.width, child.height);
canvas.clip();
child.paint(canvas);
} finally {
« no previous file with comments | « sky/examples/style/hex-layout.sky ('k') | sky/specs/style.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698