C++ Style enums 12/N: PositionType (#1399)
Summary: X-link: https://github.com/facebook/react-native/pull/39538 Pull Request resolved: https://github.com/facebook/yoga/pull/1399 Moves internal usages of YGPositionType to PositionType bypass-github-export-checks Changelog: [Internal] Reviewed By: rshest Differential Revision: D49361677 fbshipit-source-id: 526222d6cf9f3dc26eddfbfb8a04de4ba28e14a9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5bf81b1ef8
commit
4ea6b4c4f9
@@ -382,7 +382,7 @@ void Node::setPosition(
|
||||
const FlexDirection crossAxis =
|
||||
yoga::resolveCrossDirection(mainAxis, directionRespectingRoot);
|
||||
|
||||
// Here we should check for `YGPositionTypeStatic` and in this case zero inset
|
||||
// Here we should check for `PositionType::Static` and in this case zero inset
|
||||
// properties (left, right, top, bottom, begin, end).
|
||||
// https://www.w3.org/TR/css-position-3/#valdef-position-static
|
||||
const FloatOptional relativePositionMain =
|
||||
@@ -522,7 +522,7 @@ float Node::resolveFlexShrink() const {
|
||||
|
||||
bool Node::isNodeFlexible() {
|
||||
return (
|
||||
(style_.positionType() != YGPositionTypeAbsolute) &&
|
||||
(style_.positionType() != PositionType::Absolute) &&
|
||||
(resolveFlexGrow() != 0 || resolveFlexShrink() != 0));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user