浏览代码

修正子测量项切换异常

gavin.chen 8 月之前
父节点
当前提交
0c6809d9b8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/process/items/top_item.dart

+ 1 - 0
lib/process/items/top_item.dart

@@ -65,6 +65,7 @@ abstract class TopMeasureItem<T extends MeasureItemFeature>
   @override
   void switchChild(int index) {
     if (index == _childIndex) return;
+    workingChild.finishOnce();
     _childIndex = index;
     if (workingChild.measuredFeatures.isNotEmpty) {
       isNeedRedraw = true;