| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'dart:html'; | 6 import 'dart:html'; |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:math' as Math; | 8 import 'dart:math' as Math; |
| 9 import 'package:observatory/src/elements/containers/virtual_collection.dart'; | 9 import 'package:observatory/src/elements/containers/virtual_collection.dart'; |
| 10 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; | 10 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 .forEach((c) => toDo.addFirst(c)); | 170 .forEach((c) => toDo.addFirst(c)); |
| 171 final depth = depths[items.length - 1]; | 171 final depth = depths[items.length - 1]; |
| 172 depths.insertAll( | 172 depths.insertAll( |
| 173 items.length, new List.filled(children.length, depth + 1)); | 173 items.length, new List.filled(children.length, depth + 1)); |
| 174 } | 174 } |
| 175 } | 175 } |
| 176 } | 176 } |
| 177 | 177 |
| 178 _depths = depths; | 178 _depths = depths; |
| 179 _collection.items = items; | 179 _collection.items = items; |
| 180 |
| 181 _r.waitFor([_collection.onRendered.first]); |
| 180 } | 182 } |
| 181 } | 183 } |
| OLD | NEW |