黄学彪
2019-11-18 16604a593202f2f87adf71abd57d036fe7da3b52
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalListControl.cs
@@ -133,7 +133,8 @@
        /// 针对底部点击按钮,调整控件真实高度
        /// </summary>
        /// <param name="bottomSpace">底部空白间距(真实值,如果列表控件真实高度没有超过时,使用此值)</param>
        public void AdjustRealHeightByBottomButton(int bottomSpace)
        /// <param name="correctionsValue">Y轴补正值(真实值,列表控件不在bodyFramelayout的时候使用)</param>
        public void AdjustRealHeightByBottomButton(int bottomSpace, int correctionsValue = 0)
        {
            if (this.ChildrenCount == 0)
            {
@@ -146,7 +147,7 @@
                }
                return;
            }
            var realHeight = this.ChildrenCount * this.GetChildren(0).Height + this.Y;
            var realHeight = this.ChildrenCount * this.GetChildren(0).Height + this.Y + correctionsValue;
            var btnTemp = new BottomClickButton();
            if (btnTemp.Yaxis >= realHeight)
            {
@@ -160,7 +161,7 @@
            //添加临时控件,直至可以滑动超过底部按钮
            frameBackTemp?.RemoveFromParent();
            frameBackTemp = new FrameLayout();
            frameBackTemp.Height = ControlCommonResourse.BodyFrameHeight - btnTemp.Y;
            frameBackTemp.Height = ControlCommonResourse.BodyFrameHeight - btnTemp.Yaxis + bottomSpace;
            this.AddChidren(frameBackTemp);
        }