From 081ea8d273048fd03756718ac6fb48a3c09218e9 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期二, 29 十月 2019 13:10:00 +0800
Subject: [PATCH] Merge branch 'dev-tzy' into DEV_GXC

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs
index a1b5606..6535251 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs
@@ -64,15 +64,17 @@
             frameBack.Height = bodyFrameLayout.Height - btnFinish.Yaxis;
             bodyFrameLayout.AddChidren(frameBack);
 
-            var realHeight = listview.GetChildren(0).Height * listview.ChildrenCount;
-            if (bodyFrameLayout.Height - btnFinish.Yaxis + realHeight > listview.Height)
+            if (listview.ChildrenCount > 0)
             {
-                //淇冧娇琚尅浣忕殑鑿滃崟鑳藉鍚戜笂婊戝姩
-                var frameTemp = new FrameLayout();
-                frameTemp.Height = frameBack.Height + Application.GetRealHeight(115);
-                listview.AddChidren(frameTemp);
+                var realHeight = listview.GetChildren(0).Height * listview.ChildrenCount;
+                if (bodyFrameLayout.Height - btnFinish.Yaxis + realHeight > listview.Height)
+                {
+                    //淇冧娇琚尅浣忕殑鑿滃崟鑳藉鍚戜笂婊戝姩
+                    var frameTemp = new FrameLayout();
+                    frameTemp.Height = frameBack.Height + Application.GetRealHeight(115);
+                    listview.AddChidren(frameTemp);
+                }
             }
-            btnFinish = null;
         }
     }
 }

--
Gitblit v1.8.0