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

Unified Diff: sky/sdk/lib/example/game/lib/sprite_box.dart

Issue 1214833004: Split Size into Size and Offset. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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/sdk/lib/example/game/lib/sprite.dart ('k') | sky/sdk/lib/example/raw/baseline.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/example/game/lib/sprite_box.dart
diff --git a/sky/sdk/lib/example/game/lib/sprite_box.dart b/sky/sdk/lib/example/game/lib/sprite_box.dart
index f3020316b9017cf292328d31ddffb5c288acba67..6e9d3453c04c760ef13b1e9704c23deba6dc94b4 100644
--- a/sky/sdk/lib/example/game/lib/sprite_box.dart
+++ b/sky/sdk/lib/example/game/lib/sprite_box.dart
@@ -84,7 +84,7 @@ class SpriteBox extends RenderBox {
NodeWithSize get rootNode => _rootNode;
void performLayout() {
- size = constraints.constrain(Size.infinite);
+ size = constraints.biggest;
_invalidateTransformMatrix();
_callSpriteBoxPerformedLayout(_rootNode);
}
@@ -378,4 +378,4 @@ class SpriteBoxEvent {
///
/// var event = new SpriteBoxEvent(new Point(50.0, 50.0), 'pointerdown', 0);
SpriteBoxEvent(this.boxPosition, this.type, this.pointer);
-}
+}
« no previous file with comments | « sky/sdk/lib/example/game/lib/sprite.dart ('k') | sky/sdk/lib/example/raw/baseline.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698