Skip to content

Commit 6adc9bd

Browse files
committed
Update comment
1 parent 5c3ee2d commit 6adc9bd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/components/gamma/modals/form-sheet/FormSheet.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ const styles = StyleSheet.create({
1111
// We use absolute positioning so the Host view doesn't affect the layout of its siblings.
1212
// Setting `top: 0` and `left: 0` explicitly anchors the view to a predictable origin,
1313
// preventing it from floating at an arbitrary offset based on its position in the Element tree.
14+
//
15+
// IMPORTANT: "Absolute" positioning is still relative to the nearest positioned containing
16+
// box. This anchors it to that specific container's (0,0), not the global window (0,0).
1417
host: {
1518
position: 'absolute',
1619
top: 0,

0 commit comments

Comments
 (0)