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

Unified Diff: samples/swarm/swarm_ui_lib/view/SliderMenu.dart

Issue 12605003: Converting Element.client*, offset* and Screen.avail* over to Rects (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « samples/swarm/swarm_ui_lib/view/PagedViews.dart ('k') | samples/swarm/swarm_ui_lib/view/view.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/swarm_ui_lib/view/SliderMenu.dart
diff --git a/samples/swarm/swarm_ui_lib/view/SliderMenu.dart b/samples/swarm/swarm_ui_lib/view/SliderMenu.dart
index 3eae27ed91bb466f1f9ea2a555ad3c91665cf106..ab601375005be187b7aa132bd7b3d9e3240fda3c 100644
--- a/samples/swarm/swarm_ui_lib/view/SliderMenu.dart
+++ b/samples/swarm/swarm_ui_lib/view/SliderMenu.dart
@@ -158,8 +158,8 @@ class SliderMenu extends View {
if (selectedItem != null) {
// calculate where we want to put the triangle
window.setImmediate(() {
- num x = selectedItem.offsetLeft +
- selectedItem.offsetWidth / 2 - TRIANGLE_WIDTH / 2;
+ num x = selectedItem.offset.left +
+ selectedItem.offset.width / 2 - TRIANGLE_WIDTH / 2;
_moveIndicator(x, animate);
});
} else {
« no previous file with comments | « samples/swarm/swarm_ui_lib/view/PagedViews.dart ('k') | samples/swarm/swarm_ui_lib/view/view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698