From 045590bbb1efb46590b0dce0a5482cae284b33f3 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期四, 07 十一月 2019 13:50:32 +0800 Subject: [PATCH] 2019.11.7-1 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs index 98fe4b8..0c90fa4 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs @@ -79,6 +79,24 @@ #region 鈻� 涓�鑸柟娉昣__________________________ /// <summary> + /// 璋冩暣瀛怓rameLayout鐨勯珮搴� + /// </summary> + /// <param name="frame"></param> + /// <param name="buttomSpace">搴曢儴绌虹櫧闂磋窛(鐪熷疄鍊�)</param> + public void AdjustChidrenFrameHeight(FrameLayout frame, int buttomSpace) + { + var child = frame.GetChildren(frame.ChildrenCount - 1); + if (child != null) + { + //璋冩暣妗屽竷楂樺害 + if (frame.Height < child.Bottom + buttomSpace) + { + frame.Height = child.Bottom + buttomSpace; + } + } + } + + /// <summary> /// 璋冩暣妗屽竷楂樺害 /// </summary> public void AdjustTableHeight() -- Gitblit v1.8.0