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

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

Issue 2828603002: Format samples and samples-dev directories. (Closed)
Patch Set: Created 3 years, 8 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-dev/swarm/swarm_ui_lib/view/PagedViews.dart ('k') | samples-dev/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-dev/swarm/swarm_ui_lib/view/SliderMenu.dart
diff --git a/samples-dev/swarm/swarm_ui_lib/view/SliderMenu.dart b/samples-dev/swarm/swarm_ui_lib/view/SliderMenu.dart
index 99225d8d052ae6746b5e20ecd35391ea9ad8e0d5..f03712e01283889e73329e4dc00dd395fa69eee9 100644
--- a/samples-dev/swarm/swarm_ui_lib/view/SliderMenu.dart
+++ b/samples-dev/swarm/swarm_ui_lib/view/SliderMenu.dart
@@ -138,7 +138,7 @@ class SliderMenu extends View {
}
void selectNext(bool animate) {
- final result = node.querySelector('.sm-item.sel').nextElementSibling;
+ final result = node.querySelector('.sm-item.sel').nextElementSibling;
if (result != null) {
selectItem(result, animate);
}
@@ -159,7 +159,8 @@ class SliderMenu extends View {
// calculate where we want to put the triangle
scheduleMicrotask(() {
num x = selectedItem.offset.left +
- selectedItem.offset.width / 2 - TRIANGLE_WIDTH / 2;
+ selectedItem.offset.width / 2 -
+ TRIANGLE_WIDTH / 2;
_moveIndicator(x, animate);
});
} else {
« no previous file with comments | « samples-dev/swarm/swarm_ui_lib/view/PagedViews.dart ('k') | samples-dev/swarm/swarm_ui_lib/view/view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698