Remove YGExperimentalFeatureFixAbsoluteTrailingColumnMargin (#1317)
Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1317 X-link: https://github.com/facebook/react-native/pull/37374 This is edge-casey enough, and I actually broke this in D42282358 without us noticing (I changed height to width of the bottom usage, instead, copy/pasting the value of the top one). Reviewed By: yungsters Differential Revision: D45766764 fbshipit-source-id: b600b79b8436534fe48ef2acbfde8ba64068e593
This commit is contained in:
committed by
Facebook GitHub Bot
parent
506027925d
commit
0aec0a1ac4
@@ -30,7 +30,6 @@ test('align_items_stretch', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -76,7 +75,6 @@ test('align_items_center', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -124,7 +122,6 @@ test('align_items_flex_start', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -172,7 +169,6 @@ test('align_items_flex_end', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -220,7 +216,6 @@ test('align_baseline', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -284,7 +279,6 @@ test('align_baseline_child', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -363,7 +357,6 @@ test('align_baseline_child_multiline', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -489,7 +482,6 @@ test('align_baseline_child_multiline_override', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -617,7 +609,6 @@ test('align_baseline_child_multiline_no_override_on_secondline', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -744,7 +735,6 @@ test('align_baseline_child_top', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -824,7 +814,6 @@ test('align_baseline_child_top2', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -904,7 +893,6 @@ test('align_baseline_double_nested_child', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -998,7 +986,6 @@ test('align_baseline_column', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -1061,7 +1048,6 @@ test('align_baseline_child_margin', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -1148,7 +1134,6 @@ test('align_baseline_child_padding', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -1235,7 +1220,6 @@ test('align_baseline_multiline', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -1360,7 +1344,6 @@ test.skip('align_baseline_multiline_column', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -1484,7 +1467,6 @@ test.skip('align_baseline_multiline_column2', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -1608,7 +1590,6 @@ test('align_baseline_multiline_row_and_column', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -1733,7 +1714,6 @@ test('align_items_center_child_with_margin_bigger_than_parent', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -1798,7 +1778,6 @@ test('align_items_flex_end_child_with_margin_bigger_than_parent', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -1863,7 +1842,6 @@ test('align_items_center_child_without_margin_bigger_than_parent', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -1926,7 +1904,6 @@ test('align_items_flex_end_child_without_margin_bigger_than_parent', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -1989,7 +1966,6 @@ test('align_center_should_size_based_on_content', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -2068,7 +2044,6 @@ test('align_stretch_should_size_based_on_parent', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -2146,7 +2121,6 @@ test('align_flex_start_with_shrinking_children', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -2222,7 +2196,6 @@ test('align_flex_start_with_stretching_children', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
@@ -2297,7 +2270,6 @@ test('align_flex_start_with_shrinking_children_with_stretch', () => {
|
||||
let root;
|
||||
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.AbsolutePercentageAgainstPaddingEdge, true);
|
||||
config.setExperimentalFeatureEnabled(ExperimentalFeature.FixAbsoluteTrailingColumnMargin, true);
|
||||
|
||||
try {
|
||||
root = Yoga.Node.create(config);
|
||||
|
Reference in New Issue
Block a user