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:
Родитель
3bf3f63a4d
Коммит
1fa3a8e475
|
@ -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);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче