We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72de00d commit de3f940Copy full SHA for de3f940
lib/dock/dock_layout_engine.dart
@@ -47,8 +47,8 @@ class DockLayoutEngine {
47
// If the child count falls below the minimum threshold, destroy the parent and merge
48
// the children with their grandparents
49
DockNode grandParent = parentNode.parent;
50
-// parentNode.children.forEach((otherChild) {
51
- for (var otherChild in parentNode.children) {
+ for (var i = 0; i < parentNode.children.length; i++) {
+ final otherChild = parentNode.children[i];
52
if (grandParent != null) {
53
// parent node is not a root node
54
grandParent.addChildAfter(parentNode, otherChild);
0 commit comments