/// <summary>
        /// Handles an update layout call. All update layout calls are
        /// collected and dispatched at the end of a batch because update
        /// layout calls to layout-only nodes can necessitate multiple update
        /// layout calls for all its children.
        /// </summary>
        /// <param name="node">The node.</param>
        public void HandleUpdateLayout(ReactShadowNode node)
        {
#if !ENABLED
            _uiViewOperationQueue.EnqueueUpdateLayout(
                node.Parent.ReactTag,
                node.ReactTag,
                node.ScreenX,
                node.ScreenY,
                node.ScreenWidth,
                node.ScreenHeight);
#else
            ApplyLayoutBase(node);
#endif
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Handles an update layout call. All update layout calls are
        /// collected and dispatched at the end of a batch because update
        /// layout calls to layout-only nodes can necessitate multiple update
        /// layout calls for all its children.
        /// </summary>
        /// <param name="node">The node.</param>
        public void HandleUpdateLayout(ReactShadowNode node)
        {
#if DISABLE_NATIVE_VIEW_HIERARCHY_OPTIMIZER
            _uiViewOperationQueue.EnqueueUpdateLayout(
                node.Parent.ReactTag,
                node.ReactTag,
                new Dimensions
            {
                X      = node.LayoutX,
                Y      = node.LayoutY,
                Width  = node.LayoutWidth,
                Height = node.LayoutHeight
            });
#else
            ApplyLayoutBase(node);
#endif
        }
        /// <summary>
        /// Handles an update layout call. All update layout calls are
        /// collected and dispatched at the end of a batch because update
        /// layout calls to layout-only nodes can necessitate multiple update
        /// layout calls for all its children.
        /// </summary>
        /// <param name="node">The node.</param>
        public void HandleUpdateLayout(ReactShadowNode node)
        {
#if !ENABLED
            _uiViewOperationQueue.EnqueueUpdateLayout(
                node.Parent.ReactTag,
                node.ReactTag,
                new Dimensions
            {
                X      = node.LayoutX,
                Y      = node.LayoutY,
                Width  = node.LayoutWidth,
                Height = node.LayoutHeight
            });
#else
            ApplyLayoutBase(node);
#endif
        }