| 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 20a58a76ef122067bd3d631938e4705f0f2184a7..2561ce667cf0e9a43e538e5b5cfa7abb1a50ad3e 100644
|
| --- a/samples/swarm/swarm_ui_lib/view/SliderMenu.dart
|
| +++ b/samples/swarm/swarm_ui_lib/view/SliderMenu.dart
|
| @@ -157,7 +157,7 @@ class SliderMenu extends View {
|
| void updateIndicator(bool animate) {
|
| if (selectedItem != null) {
|
| // calculate where we want to put the triangle
|
| - window.requestLayoutFrame(() {
|
| + window.setImmediate(() {
|
| num x = selectedItem.offsetLeft +
|
| selectedItem.offsetWidth / 2 - TRIANGLE_WIDTH / 2;
|
| _moveIndicator(x, animate);
|
|
|