From ffb6daad4ae46ec344fbc12215413393adb0e5ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20W=C3=B6hrl?= Date: Wed, 15 Feb 2017 08:16:37 -0800 Subject: [PATCH] Remove no longer valid limitiation hints Summary: Remove no longer valid limitiation hints, according to percentag, auto margins and flex values. Closes https://github.com/facebook/yoga/pull/402 Reviewed By: astreet Differential Revision: D4564709 Pulled By: emilsjolander fbshipit-source-id: ef7f37921644b4d315c7a84552861713061b33e1 --- ReactCommon/yoga/yoga/Yoga.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/ReactCommon/yoga/yoga/Yoga.c b/ReactCommon/yoga/yoga/Yoga.c index e5b765155..f799a617b 100644 --- a/ReactCommon/yoga/yoga/Yoga.c +++ b/ReactCommon/yoga/yoga/Yoga.c @@ -1762,27 +1762,6 @@ static void YGZeroOutLayoutRecursivly(const YGNodeRef node) { // * The 'wrap' property supports only 'nowrap' (which is the default) or // 'wrap'. The // rarely-used 'wrap-reverse' is not supported. -// * Rather than allowing arbitrary combinations of flexGrow, flexShrink and -// flexBasis, this algorithm supports only the three most common -// combinations: -// flex: 0 is equiavlent to flex: 0 0 auto -// flex: n (where n is a positive value) is equivalent to flex: n 1 auto -// If POSITIVE_FLEX_IS_AUTO is 0, then it is equivalent to flex: n 0 0 -// This is faster because the content doesn't need to be measured, but -// it's -// less flexible because the basis is always 0 and can't be overriden -// with -// the width/height attributes. -// flex: -1 (or any negative value) is equivalent to flex: 0 1 auto -// * Margins cannot be specified as 'auto'. They must be specified in terms of -// points -// values, and the default value is 0. -// * Values of width, maxWidth, minWidth, height, maxHeight and minHeight must -// be -// specified as point values, not as percentages. -// * There is no support for calculation of dimensions based on intrinsic -// aspect ratios -// (e.g. images). // * There is no support for forced breaks. // * It does not support vertical inline directions (top-to-bottom or // bottom-to-top text).