From 2ed75b8b337048e5d75e6d9ec8307633134f02fd Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 10 十月 2019 11:33:04 +0800
Subject: [PATCH] 个人中心添加楼层和创建房间,实装二级验证

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalListControl.cs |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalListControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalListControl.cs
index 34fa16f..df9a338 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalListControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalListControl.cs
@@ -49,5 +49,28 @@
             }
         }
         #endregion
+
+        #region 鈻� 璋冩暣鐪熷疄楂樺害_______________________
+
+        /// <summary>
+        /// 璋冩暣鎺т欢鐪熷疄楂樺害(鍙拡瀵硅鎺т欢閮芥槸鐩稿悓楂樺害鐨�,楂樺害鍙細鍑忓皯,涓嶄細澧炲姞)
+        /// </summary>
+        /// <param name="bottomSpace">搴曢儴绌虹櫧闂磋窛(鐪熷疄鍊�)</param>
+        public void AdjustRealHeight(int bottomSpace)
+        {
+            if (this.ChildrenCount == 0)
+            {
+                return;
+            }
+            //璋冩暣鍒楄〃鎺т欢鐨勯珮搴�
+            var realHeight = this.ChildrenCount * this.GetChildren(0).Height + bottomSpace;
+            if (realHeight < this.Height)
+            {
+                //缂╁皬鎺т欢楂樺害
+                this.Height = realHeight;
+            }
+        }
+
+        #endregion
     }
 }

--
Gitblit v1.8.0