From 9ef48d7b2da7c408b53f73be0f6eef3cbac1c84a Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 19 十一月 2020 10:23:45 +0800
Subject: [PATCH] Evoyo.Home1.1.0120111601_Release

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs
index 62f0a2b..d55657d 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs
@@ -34,12 +34,14 @@
         /// <param name="bodyFrameLayout">鐖舵帶浠�</param>
         /// <param name="title">鏍囬鏂囨湰</param>
         /// <param name="Height">钃濇箹UI閲岄潰瀹冪殑楂樺害</param>
+        /// <param name="real">鏄惁璁$畻Height鐨勭湡瀹炲��</param>
         /// <returns>淇℃伅瀹瑰櫒鎺т欢</returns>
-        public FrameListControl InitControl(FrameLayout bodyFrameLayout, string title, int Height)
+        public FrameListControl InitControl(FrameLayout bodyFrameLayout, string title, int Height, bool real = true)
         {
+            if (real == true) { Height = Application.GetRealHeight(Height); }
             //鏄庣粏鍒楄〃鐨勬甯冿紝鐧借壊鑳屾櫙
             this.detailBackFrame = new FrameLayout();
-            detailBackFrame.Height = Application.GetRealHeight(Height);
+            detailBackFrame.Height = Height;
             detailBackFrame.BackgroundColor = UserCenterColor.Current.White;
             detailBackFrame.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight);
             detailBackFrame.Gravity = Gravity.BottomCenter;
@@ -58,7 +60,7 @@
             //鍒楄〃鎺т欢
             this.listview = new FrameListControl(12);
             listview.Y = btnTile.Bottom + Application.GetRealHeight(17);
-            listview.Height = Application.GetRealHeight(Height) - btnTile.Bottom - Application.GetRealHeight(17);
+            listview.Height = Height - btnTile.Bottom - Application.GetRealHeight(17);
             detailBackFrame.AddChidren(listview);
 
             return listview;

--
Gitblit v1.8.0