Repository navigation
Commit f7cd859
committed
fix(iOS): don't apply padding twice to legacy interop views
The interop component view sets the paper view as its contentView, and
RCTViewComponentView places contentView at the layout content frame (inset
by padding/border). The paper view's children, however, are mounted directly
into it with frames computed by Yoga relative to the outer frame, which
already include the padding. As a result the padding is applied twice: the
legacy view shrinks by the padding while its children are pushed out by it.
Keep the paper view at the full bounds, matching Paper.1 parent 056e7ee commit f7cd859
1 file changed
Lines changed: 16 additions & 0 deletions
File tree
- packages/react-native/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
164 | 180 | | |
165 | 181 | | |
166 | 182 | | |
| |||
0 commit comments