黄学彪
2020-04-14 463cf39019aa54e6c1226be4620766a035a0c490
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;