Fabric: Support for Yoga's `overflow` property on iOS
Summary: @public Quite trivial. Reviewed By: mdvacca Differential Revision: D9146963 fbshipit-source-id: 3cdace99c172a3aea3c0af07ecb82488437d0311
This commit is contained in:
parent
50b80a9ef8
commit
96238e03b6
|
@ -125,6 +125,11 @@ using namespace facebook::react;
|
|||
self.hitTestEdgeInsets = RCTUIEdgeInsetsFromEdgeInsets(newViewProps.hitSlop);
|
||||
}
|
||||
|
||||
// `overflow`
|
||||
if (oldViewProps.yogaStyle.overflow != newViewProps.yogaStyle.overflow) {
|
||||
self.clipsToBounds = newViewProps.yogaStyle.overflow != YGOverflowVisible;
|
||||
}
|
||||
|
||||
// `zIndex`
|
||||
if (oldViewProps.zIndex != newViewProps.zIndex) {
|
||||
self.layer.zPosition = (CGFloat)newViewProps.zIndex;
|
||||
|
|
Loading…
Reference in New Issue