From f14dcfd967404e197e7ec995ca8d6f2b090d3b7d Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期五, 11 九月 2020 09:16:59 +0800
Subject: [PATCH] 优化多功能面板:绑定温湿度传感器目标,和设备列表回路显示。优化数据矫正功能温湿度度不设置的情况。优化门锁时间设置最后一天和最后最后一个月的时间显示等 细节

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs |   28 +++++++++++++++++-----------
 1 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs
index d307b28..cea4fbb 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs
@@ -18,11 +18,11 @@
         /// <summary>
         /// 妗屽竷鎺т欢
         /// </summary>
-        private FrameLayout m_frameTable = null;
+        private NormalFrameLayout m_frameTable = null;
         /// <summary>
         /// 妗屽竷鎺т欢(杩欎釜涓滆タ涓嶈兘鍒狅紝鍥犱负鏈変簺鐣岄潰闇�瑕佷粬鐨勬甯�)
         /// </summary>
-        public FrameLayout frameTable
+        public NormalFrameLayout frameTable
         {
             get
             {
@@ -65,7 +65,7 @@
             {
                 return;
             }
-            this.m_frameTable = new FrameLayout();
+            this.m_frameTable = new NormalFrameLayout();
             this.m_frameTable.Width = this.Width;
             this.m_frameTable.Height = this.Height;
             base.AddChidren(this.m_frameTable);
@@ -85,16 +85,16 @@
             this.InitFrameTable();
 
             //鑾峰彇鍧愭爣搴曢儴鏈�涓嬮潰鐨勯偅涓帶浠剁殑搴曢儴鍧愭爣
-            int value = this.GetLocationMostLastViewBottom(this.m_frameTable);
+            int value = this.GetLocationMostLastViewBottom(this.frameTable);
             if (value != -1)
             {
                 view.Y = value + rowSpace;
             }
-            this.m_frameTable.AddChidren(view);
+            this.frameTable.AddChidren(view);
             //璋冩暣妗屽竷楂樺害
-            if (this.m_frameTable.Height < view.Bottom)
+            if (this.frameTable.Height < view.Bottom)
             {
-                this.m_frameTable.Height = view.Bottom;
+                this.frameTable.Height = view.Bottom;
             }
         }
 
@@ -125,10 +125,16 @@
         /// 璋冩暣瀛怓rameLayout鐨勭湡瀹為珮搴�
         /// </summary>
         /// <param name="frame"></param>
-        public void AdjustChidrenFrameRealHeight(FrameLayout frame)
+        /// <param name="minHeight">鏈�灏忛珮搴�</param>
+        public void AdjustChidrenFrameRealHeight(FrameLayout frame, int minHeight = -1)
         {
             //鑾峰彇鍧愭爣搴曢儴鏈�涓嬮潰鐨勯偅涓帶浠剁殑搴曢儴鍧愭爣
             int value = this.GetLocationMostLastViewBottom(frame);
+            if (minHeight != -1 && value < minHeight)
+            {
+                //娌℃湁瓒呰繃鏈�灏忛珮搴�
+                return;
+            }
             if (value != -1)
             {
                 //璋冩暣妗屽竷楂樺害
@@ -148,11 +154,11 @@
             }
 
             //鑾峰彇鍧愭爣搴曢儴鏈�涓嬮潰鐨勯偅涓帶浠剁殑搴曢儴鍧愭爣
-            int value = this.GetLocationMostLastViewBottom(this.m_frameTable);
+            int value = this.GetLocationMostLastViewBottom(this.frameTable);
             if (value != -1)
             {
                 //璋冩暣妗屽竷楂樺害
-                this.m_frameTable.Height = value;
+                this.frameTable.Height = value;
             }
             else
             {
@@ -174,7 +180,7 @@
             this.AdjustTableHeight();
 
             var btnTemp = new BottomClickButton();
-            if (btnTemp.Yaxis >= this.m_frameTable.Height + correctionsValue)
+            if (btnTemp.Yaxis >= this.frameTable.Height + correctionsValue)
             {
                 //娌℃湁瓒呰繃
                 return;

--
Gitblit v1.8.0