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:
Samuel Susla
2020-06-09 02:31:00 -07:00
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);