From f1c3921b08bb22ac6f5db22d620e01d7e8e5c49f Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期一, 30 十二月 2019 13:32:33 +0800 Subject: [PATCH] 2019-12-30-1 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalListControl.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalListControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalListControl.cs index ed9c5a9..780cd57 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalListControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalListControl.cs @@ -31,7 +31,7 @@ get { int count = base.ChildrenCount; - if (frameBackTemp != null) + if (frameBackTemp != null && frameBackTemp.Parent != null) { count--; } @@ -49,7 +49,7 @@ /// <param name="i_rowSpace">琛屼箣闂寸殑闂磋窛(杩欎釜鍊兼槸涓庤鎺т欢缁戝畾涓�璧蜂娇鐢ㄧ殑)</param> public VerticalListControl(int i_rowSpace = 0) { - rowSpace = Application.GetRealHeight(i_rowSpace); + this.rowSpace = Application.GetRealHeight(i_rowSpace); } #endregion @@ -97,7 +97,7 @@ /// <param name="addSpace">褰撶湡瀹為珮搴﹁秴杩囧師鏈夐珮搴︽椂,鏄惁娣诲姞绌虹櫧</param> public void AdjustRealHeight(int bottomSpace, bool addSpace = true) { - int count = frameBackTemp == null ? this.ChildrenCount : this.ChildrenCount - 1; + int count = this.ChildrenCount; if (count <= 0) { frameBackTemp?.RemoveFromParent(); -- Gitblit v1.8.0