mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Form stacking context if display style is none
Summary: Changelog: [Internal] View gets flattened even though it has `display: none` and therefore it and its children do not get hidden. Reviewed By: shergin, mdvacca Differential Revision: D21929033 fbshipit-source-id: 994a79fb64fbe66273a70218ebe8056d92cd3cd4
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3bf3f63a4d
commit
1fa3a8e475
@@ -46,6 +46,7 @@ void ViewShadowNode::initialize() noexcept {
|
||||
viewProps.elevation != 0 ||
|
||||
(viewProps.zIndex != 0 &&
|
||||
viewProps.yogaStyle.positionType() == YGPositionTypeAbsolute) ||
|
||||
viewProps.yogaStyle.display() == YGDisplayNone ||
|
||||
viewProps.getClipsContentToBounds() ||
|
||||
isColorMeaningful(viewProps.shadowColor);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user