Forráskód Böngészése

修正子测量项切换异常

gavin.chen 8 hónapja
szülő
commit
0c6809d9b8
1 módosított fájl, 1 hozzáadás és 0 törlés
  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;