Commit Graph

13 Commits

Author SHA1 Message Date
Lukas Woehrl
e87edbf206 adjusted text and fixed alignment on column/row direction difference 2017-01-05 17:33:49 +01:00
Lukas Woehrl
d10d050a2e renamed files and moved tests to accoriding fixtures 2017-01-05 17:02:28 +01:00
Lukas Woehrl
60861a3b81 more tests for row and column directions 2017-01-05 15:19:07 +01:00
Lukas Woehrl
87abbc0935 added test for align-self: baseline 2017-01-05 15:11:32 +01:00
Lukas Woehrl
23ad2df59c fix layout with explicit top specified 2017-01-05 14:29:26 +01:00
Lukas Woehrl
eaa2501c76 fix multiline baseline layout 2017-01-05 11:47:38 +01:00
Lukas Woehrl
5803ba4e5b fix nodes with margin 2017-01-05 11:03:36 +01:00
Lukas Woehrl
29bce98fd9 enums for csharp and java 2017-01-04 22:39:46 +01:00
Lukas Woehrl
3d840e533b added baseline support 2017-01-04 22:21:29 +01:00
Lukas Woehrl
a85bd4ad2a Add feature to use percentage as value unit
Summary:
Adds the feature to use percentage as a value unit.

You can use the function ```YGPx(float)``` and ```YGPercent(float)``` for convenience.

I did some benchmarks:

```
Without Percentage Feature - Release x86:

Stack with flex: median: 0.000000 ms, stddev: 0.146683 ms
Align stretch in undefined axis: median: 0.000000 ms, stddev: 0.136525 ms
Nested flex: median: 0.000000 ms, stddev: 0.490101 ms
Huge nested layout: median: 23.000000 ms, stddev: 0.928291 ms

Stack with flex: median: 0.000000 ms, stddev: 0.170587 ms
Align stretch in undefined axis: median: 0.000000 ms, stddev: 0.143384 ms
Nested flex: median: 0.000000 ms, stddev: 0.477791 ms
Huge nested layout: median: 22.000000 ms, stddev: 2.129779 ms

With Percentage Feature - Release x86:

Stack with flex: median: 0.000000 ms, stddev: 0.132951 ms
Align stretch in undefined axis: median: 0.000000 ms, stddev: 0.136525 ms
Nested flex: median: 0.000000 ms, stddev: 0.489570 ms
Huge nested layout: median: 21.000000 ms, stddev: 1.390476 ms
Closes https://github.com/facebook/yoga/pull/258

Reviewed By: dshahidehpour

Differential Revision: D4361945

Pulled By: emilsjolander

fbshipit-source-id: a8f5bc63ad352eb9410d792729e56664468cd76a
2017-01-02 05:24:35 -08:00
Emil Sjolander
352f592767 Allow decimal measurements on java
Summary: Preserve floating point values when passing them across the JNI bridge.

Differential Revision: D4366605

fbshipit-source-id: 0b94ee87a03a6ed918360dd9998930e780fc865d
2016-12-29 04:55:56 -08:00
Georgiy Kassabli
85b8386ba1 Test for minHeight with flexing
Summary: This test creates a repro case for Yoga to emulate UFI layout failure

Reviewed By: emilsjolander

Differential Revision: D4313632

fbshipit-source-id: 35be7d86b50a9ae08c81891a889a74e4b61f2d27
2016-12-21 11:39:34 -08:00
Emil Sjolander
b11155423c Rename directories
Reviewed By: gkassabli

Differential Revision: D4284681

Summary: Rename csslayout directories to yoga

fbshipit-source-id: f0c6855c2c6e4389b7867f48f72cbb697830fc5a
2016-12-07 05:22:52 -08:00