@@ -127,12 +127,12 @@ func TestPercentage_flex_basis(t *testing.T) {
127
127
128
128
rootChild0 := NewNodeWithConfig (config )
129
129
NodeStyleSetFlexGrow (rootChild0 , 1 )
130
- NodeStyleSetFlexBasisPercent ( rootChild0 , 50 )
130
+ rootChild0 . StyleSetFlexBasisPercent ( 50 )
131
131
NodeInsertChild (root , rootChild0 , 0 )
132
132
133
133
rootChild1 := NewNodeWithConfig (config )
134
134
NodeStyleSetFlexGrow (rootChild1 , 1 )
135
- NodeStyleSetFlexBasisPercent ( rootChild1 , 25 )
135
+ rootChild1 . StyleSetFlexBasisPercent ( 25 )
136
136
NodeInsertChild (root , rootChild1 , 1 )
137
137
NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
138
138
@@ -178,12 +178,12 @@ func TestPercentage_flex_basis_cross(t *testing.T) {
178
178
179
179
rootChild0 := NewNodeWithConfig (config )
180
180
NodeStyleSetFlexGrow (rootChild0 , 1 )
181
- NodeStyleSetFlexBasisPercent ( rootChild0 , 50 )
181
+ rootChild0 . StyleSetFlexBasisPercent ( 50 )
182
182
NodeInsertChild (root , rootChild0 , 0 )
183
183
184
184
rootChild1 := NewNodeWithConfig (config )
185
185
NodeStyleSetFlexGrow (rootChild1 , 1 )
186
- NodeStyleSetFlexBasisPercent ( rootChild1 , 25 )
186
+ rootChild1 . StyleSetFlexBasisPercent ( 25 )
187
187
NodeInsertChild (root , rootChild1 , 1 )
188
188
NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
189
189
@@ -281,13 +281,13 @@ func TestPercentage_flex_basis_main_max_height(t *testing.T) {
281
281
282
282
rootChild0 := NewNodeWithConfig (config )
283
283
NodeStyleSetFlexGrow (rootChild0 , 1 )
284
- NodeStyleSetFlexBasisPercent ( rootChild0 , 10 )
284
+ rootChild0 . StyleSetFlexBasisPercent ( 10 )
285
285
NodeStyleSetMaxHeightPercent (rootChild0 , 60 )
286
286
NodeInsertChild (root , rootChild0 , 0 )
287
287
288
288
rootChild1 := NewNodeWithConfig (config )
289
289
NodeStyleSetFlexGrow (rootChild1 , 4 )
290
- NodeStyleSetFlexBasisPercent ( rootChild1 , 10 )
290
+ rootChild1 . StyleSetFlexBasisPercent ( 10 )
291
291
NodeStyleSetMaxHeightPercent (rootChild1 , 20 )
292
292
NodeInsertChild (root , rootChild1 , 1 )
293
293
NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
@@ -334,13 +334,13 @@ func TestPercentage_flex_basis_cross_max_height(t *testing.T) {
334
334
335
335
rootChild0 := NewNodeWithConfig (config )
336
336
NodeStyleSetFlexGrow (rootChild0 , 1 )
337
- NodeStyleSetFlexBasisPercent ( rootChild0 , 10 )
337
+ rootChild0 . StyleSetFlexBasisPercent ( 10 )
338
338
NodeStyleSetMaxHeightPercent (rootChild0 , 60 )
339
339
NodeInsertChild (root , rootChild0 , 0 )
340
340
341
341
rootChild1 := NewNodeWithConfig (config )
342
342
NodeStyleSetFlexGrow (rootChild1 , 4 )
343
- NodeStyleSetFlexBasisPercent ( rootChild1 , 10 )
343
+ rootChild1 . StyleSetFlexBasisPercent ( 10 )
344
344
NodeStyleSetMaxHeightPercent (rootChild1 , 20 )
345
345
NodeInsertChild (root , rootChild1 , 1 )
346
346
NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
@@ -388,13 +388,13 @@ func TestPercentage_flex_basis_main_max_width(t *testing.T) {
388
388
389
389
rootChild0 := NewNodeWithConfig (config )
390
390
NodeStyleSetFlexGrow (rootChild0 , 1 )
391
- NodeStyleSetFlexBasisPercent ( rootChild0 , 15 )
391
+ rootChild0 . StyleSetFlexBasisPercent ( 15 )
392
392
NodeStyleSetMaxWidthPercent (rootChild0 , 60 )
393
393
NodeInsertChild (root , rootChild0 , 0 )
394
394
395
395
rootChild1 := NewNodeWithConfig (config )
396
396
NodeStyleSetFlexGrow (rootChild1 , 4 )
397
- NodeStyleSetFlexBasisPercent ( rootChild1 , 10 )
397
+ rootChild1 . StyleSetFlexBasisPercent ( 10 )
398
398
NodeStyleSetMaxWidthPercent (rootChild1 , 20 )
399
399
NodeInsertChild (root , rootChild1 , 1 )
400
400
NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
@@ -441,13 +441,13 @@ func TestPercentage_flex_basis_cross_max_width(t *testing.T) {
441
441
442
442
rootChild0 := NewNodeWithConfig (config )
443
443
NodeStyleSetFlexGrow (rootChild0 , 1 )
444
- NodeStyleSetFlexBasisPercent ( rootChild0 , 10 )
444
+ rootChild0 . StyleSetFlexBasisPercent ( 10 )
445
445
NodeStyleSetMaxWidthPercent (rootChild0 , 60 )
446
446
NodeInsertChild (root , rootChild0 , 0 )
447
447
448
448
rootChild1 := NewNodeWithConfig (config )
449
449
NodeStyleSetFlexGrow (rootChild1 , 4 )
450
- NodeStyleSetFlexBasisPercent ( rootChild1 , 15 )
450
+ rootChild1 . StyleSetFlexBasisPercent ( 15 )
451
451
NodeStyleSetMaxWidthPercent (rootChild1 , 20 )
452
452
NodeInsertChild (root , rootChild1 , 1 )
453
453
NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
@@ -495,13 +495,13 @@ func TestPercentage_flex_basis_main_min_width(t *testing.T) {
495
495
496
496
rootChild0 := NewNodeWithConfig (config )
497
497
NodeStyleSetFlexGrow (rootChild0 , 1 )
498
- NodeStyleSetFlexBasisPercent ( rootChild0 , 15 )
498
+ rootChild0 . StyleSetFlexBasisPercent ( 15 )
499
499
NodeStyleSetMinWidthPercent (rootChild0 , 60 )
500
500
NodeInsertChild (root , rootChild0 , 0 )
501
501
502
502
rootChild1 := NewNodeWithConfig (config )
503
503
NodeStyleSetFlexGrow (rootChild1 , 4 )
504
- NodeStyleSetFlexBasisPercent ( rootChild1 , 10 )
504
+ rootChild1 . StyleSetFlexBasisPercent ( 10 )
505
505
NodeStyleSetMinWidthPercent (rootChild1 , 20 )
506
506
NodeInsertChild (root , rootChild1 , 1 )
507
507
NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
@@ -548,13 +548,13 @@ func TestPercentage_flex_basis_cross_min_width(t *testing.T) {
548
548
549
549
rootChild0 := NewNodeWithConfig (config )
550
550
NodeStyleSetFlexGrow (rootChild0 , 1 )
551
- NodeStyleSetFlexBasisPercent ( rootChild0 , 10 )
551
+ rootChild0 . StyleSetFlexBasisPercent ( 10 )
552
552
NodeStyleSetMinWidthPercent (rootChild0 , 60 )
553
553
NodeInsertChild (root , rootChild0 , 0 )
554
554
555
555
rootChild1 := NewNodeWithConfig (config )
556
556
NodeStyleSetFlexGrow (rootChild1 , 4 )
557
- NodeStyleSetFlexBasisPercent ( rootChild1 , 15 )
557
+ rootChild1 . StyleSetFlexBasisPercent ( 15 )
558
558
NodeStyleSetMinWidthPercent (rootChild1 , 20 )
559
559
NodeInsertChild (root , rootChild1 , 1 )
560
560
NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
@@ -601,7 +601,7 @@ func TestPercentage_multiple_nested_with_padding_margin_and_percentage_values(t
601
601
602
602
rootChild0 := NewNodeWithConfig (config )
603
603
NodeStyleSetFlexGrow (rootChild0 , 1 )
604
- NodeStyleSetFlexBasisPercent ( rootChild0 , 10 )
604
+ rootChild0 . StyleSetFlexBasisPercent ( 10 )
605
605
NodeStyleSetMargin (rootChild0 , EdgeLeft , 5 )
606
606
NodeStyleSetMargin (rootChild0 , EdgeTop , 5 )
607
607
NodeStyleSetMargin (rootChild0 , EdgeRight , 5 )
@@ -639,7 +639,7 @@ func TestPercentage_multiple_nested_with_padding_margin_and_percentage_values(t
639
639
640
640
rootChild1 := NewNodeWithConfig (config )
641
641
NodeStyleSetFlexGrow (rootChild1 , 4 )
642
- NodeStyleSetFlexBasisPercent ( rootChild1 , 15 )
642
+ rootChild1 . StyleSetFlexBasisPercent ( 15 )
643
643
NodeStyleSetMinWidthPercent (rootChild1 , 20 )
644
644
NodeInsertChild (root , rootChild1 , 1 )
645
645
NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
0 commit comments