Editor's width and height is not updated when changing the device orientation from landscape to portrait.
Root Cause:
When changing the device orientation from landscape to portrait, the Editor view retains its previous landscape bounds, as the bounds for the PlatformView of the Editor are not updated during the new layout pass from the parent. This issue occurs when the Editor is placed inside a nested ScrollView and Grid. The size of the grid (the presented content inside the first ScrollView) is not updated during the layout pass. As a result, the layout of subsequent children, such as the Border, second ScrollView, and the Editor itself, does not update correctly, causing the width and height to remain incorrect.
Description of Change:
I’ve called the scrollView.ArrangeContentUnbounded(Frame) method within the ArrangeOverride method of the ScrollView class. This ensures that the presented content (the Grid) updates its size, along with its child elements, including the Border, inner ScrollView, and Editor.
Issue Details:
Editor's width and height is not updated when changing the device orientation from landscape to portrait.
Root Cause:
When changing the device orientation from landscape to portrait, the Editor view retains its previous landscape bounds, as the bounds for the PlatformView of the Editor are not updated during the new layout pass from the parent. This issue occurs when the Editor is placed inside a nested ScrollView and Grid. The size of the grid (the presented content inside the first ScrollView) is not updated during the layout pass. As a result, the layout of subsequent children, such as the Border, second ScrollView, and the Editor itself, does not update correctly, causing the width and height to remain incorrect.
Description of Change:
I’ve called the scrollView.ArrangeContentUnbounded(Frame) method within the ArrangeOverride method of the ScrollView class. This ensures that the presented content (the Grid) updates its size, along with its child elements, including the Border, inner ScrollView, and Editor.
Tested the behavior in the following platforms.
Issues Fixed:
Fixes #22946
Screenshots