Updates the layout specs of the RootShadowNode based on the Measure specs received by parameters. offsetX and offsetY are the position of the RootView within the screen.