mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-14 13:22:37 +00:00
docs(app): state why pane sizing reads the root layout width
This commit is contained in:
@@ -21,7 +21,12 @@ export function MeasuredWindowWidthProvider({
|
||||
);
|
||||
}
|
||||
|
||||
/** The root view's actual width survives fold changes that skip RN Dimensions updates. */
|
||||
/**
|
||||
* Width of the rendered root view; RN Dimensions until the first layout.
|
||||
* RN Dimensions settles after the root layout during an in-place Android fold.
|
||||
* Sizing panes from Dimensions alone made the compact panel gesture fail to
|
||||
* attach after folding closed, so pane sizing reads this width instead.
|
||||
*/
|
||||
export function useLayoutWindowWidth(): number {
|
||||
const measuredWidth = useContext(MeasuredWindowWidthContext);
|
||||
const { width: dimensionsWidth } = useWindowDimensions();
|
||||
|
||||
Reference in New Issue
Block a user