From 463cf39019aa54e6c1226be4620766a035a0c490 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期二, 14 四月 2020 13:31:07 +0800 Subject: [PATCH] 上传个东西 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs index f2add7e..8038b83 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs @@ -97,7 +97,7 @@ public void AdjustChidrenFrameHeight(FrameLayout frame, int buttomSpace) { //鑾峰彇鍧愭爣搴曢儴鏈�涓嬮潰鐨勯偅涓帶浠剁殑搴曢儴鍧愭爣 - int value = this.GetLocationMostLastViewBottom(); + int value = this.GetLocationMostLastViewBottom(frame); if (value != -1) { //璋冩暣妗屽竷楂樺害 @@ -114,7 +114,7 @@ public void AdjustTableHeight() { //鑾峰彇鍧愭爣搴曢儴鏈�涓嬮潰鐨勯偅涓帶浠剁殑搴曢儴鍧愭爣 - int value = this.GetLocationMostLastViewBottom(); + int value = this.GetLocationMostLastViewBottom(this.m_frameTable); if (value != -1) { //璋冩暣妗屽竷楂樺害 @@ -135,9 +135,12 @@ return; } //娣诲姞涓存椂鎺т欢,鐩磋嚦鍙互婊戝姩瓒呰繃搴曢儴鎸夐挳 + int oldRowSpace = this.rowSpace; + this.rowSpace = 0; var frameBackTemp = new FrameLayout(); frameBackTemp.Height = ControlCommonResourse.BodyFrameHeight - btnTemp.Yaxis + Application.GetRealHeight(23); this.AddChidrenFrame(frameBackTemp); + this.rowSpace = oldRowSpace; } /// <summary> @@ -155,15 +158,15 @@ /// 鑾峰彇鍧愭爣搴曢儴鏈�涓嬮潰鐨勯偅涓帶浠剁殑搴曢儴鍧愭爣 /// </summary> /// <returns></returns> - private int GetLocationMostLastViewBottom() + private int GetLocationMostLastViewBottom(FrameLayout frame) { int bottomHeight = -1; - if (this.m_frameTable == null) { return bottomHeight; } + if (frame == null) { return bottomHeight; } - for (int i = 0; i < this.m_frameTable.ChildrenCount; i++) + for (int i = 0; i < frame.ChildrenCount; i++) { - var child = this.m_frameTable.GetChildren(i); + var child = frame.GetChildren(i); if (child.Bottom > bottomHeight) { bottomHeight = child.Bottom; -- Gitblit v1.8.0