Exemple #1
0
        public override ApplyState Apply(ComputedStyle style, Value value)
        {
            // Request a shortform redraw:
            style.RequestFastLayout();

            // Grab the virtual elements:
            VirtualElements virts = style.RenderData.Virtuals;

            // Update them:
            if (virts != null)
            {
                // H:
                HtmlScrollbarElement scroll = virts.Get(ComputedStyle.HorizontalScrollPriority) as HtmlScrollbarElement;

                if (scroll != null)
                {
                    scroll.ElementScrolled();
                }

                // V:
                scroll = virts.Get(ComputedStyle.VerticalScrollPriority) as HtmlScrollbarElement;

                if (scroll != null)
                {
                    scroll.ElementScrolled();
                }
            }

            // Ok!
            return(ApplyState.Ok);
        }