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:28:18 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 3bf3f63a4d
Коммит 1fa3a8e475
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -46,6 +46,7 @@ void ViewShadowNode::initialize() noexcept {
viewProps.elevation != 0 || viewProps.elevation != 0 ||
(viewProps.zIndex != 0 && (viewProps.zIndex != 0 &&
viewProps.yogaStyle.positionType() == YGPositionTypeAbsolute) || viewProps.yogaStyle.positionType() == YGPositionTypeAbsolute) ||
viewProps.yogaStyle.display() == YGDisplayNone ||
viewProps.getClipsContentToBounds() || viewProps.getClipsContentToBounds() ||
isColorMeaningful(viewProps.shadowColor); isColorMeaningful(viewProps.shadowColor);