Exemplo n.º 1
0
        public override void LayoutSubviews()
        {
            _insetTracker?.OnLayoutSubviews();
            base.LayoutSubviews();

            if (Superview != null && ScrollView != null)
            {
                if (_requestedScroll != null)
                {
                    var request = _requestedScroll;
                    _requestedScroll = null;
                    OnScrollToRequested(this, request);
                }
                else
                {
                    UpdateFlowDirection();
                }
            }

            if (_previousFrame != Frame)
            {
                _previousFrame = Frame;
                _insetTracker?.UpdateInsets();
            }
        }
Exemplo n.º 2
0
        public override void LayoutSubviews()
        {
            base.LayoutSubviews();

            if (_previousFrame != Frame)
            {
                _previousFrame = Frame;
                _insetTracker?.UpdateInsets();
            }
        }
        public override void LayoutSubviews()
        {
            base.LayoutSubviews();

            if (_requestedScroll != null && Superview != null)
            {
                var request = _requestedScroll;
                _requestedScroll = null;
                OnScrollToRequested(this, request);
            }

            if (_previousFrame != Frame)
            {
                _previousFrame = Frame;
                _insetTracker?.UpdateInsets();
            }
        }