Pierre Renaux
cc5f772bff
Style fixes ;
2015-05-10 00:19:29 +08:00
Pierre Renaux
998fa1d6ba
[Issue facebook/css-layout#78 ]: Implemented alignContent ;
2015-05-10 00:19:27 +08:00
Christopher Chedeau
3203e86155
Merge pull request #70 from tadeuzagallo/remove-dead-code
...
Remove unused code pointed by Xcode
2015-05-05 08:10:04 -07:00
Pierre Renaux
ee5e8c1722
[Layout.c/h]: Minor modifications so that the Microsoft compiler can compile the file as C++ directly ;
2015-05-05 18:07:06 +08:00
Andrew Rasmussen
86c39b5e4f
Revert "Ensure that flex children adopt their parent's cross-axis min dimension."
...
This reverts commit b8316413b3
.
This was causing issues for existing components built with React
Native.. we need to investigate more in the future.
2015-05-01 12:16:47 -07:00
Andrew Rasmussen
5f52e947cb
Fix layout for absolutely positioned nodes with absolutely positioned parents that have border and/or padding
2015-04-30 14:40:39 -07:00
Tadeu Zagallo
aad5efe938
Remove unused code pointed by Xcode
2015-04-24 16:45:49 +01:00
Russell Keith-Magee
b8316413b3
Ensure that flex children adopt their parent's cross-axis min dimension.
2015-04-07 10:52:15 +08:00
Russell Keith-Magee
2b6844f00a
Simplified logic distributing flex space.
2015-03-31 18:58:56 +08:00
Russell Keith-Magee
c523b7c404
Added support for min/max width and height constraints.
2015-03-31 17:32:54 +08:00
Tom Mulcahy
ddd7a899ac
Make Java measure thread-safe.
2015-03-26 22:49:48 +00:00
Russell Keith-Magee
8f6a96adbc
Normalized C and Java definition of isDimDefined.
...
The JavaScript implementation of isDimDefined contains a check to ensure
that the dimension value is positive; the C and Java versions did not
have this check. As a result, a negative style value for 'width' (such
as that used by the "should layout node with negative width" test) would
have different layout under the C/Java implementation to the JavaScript
implementation.
This was hidden because the C/Java transpilers filtered out any negative
instantiation values from the test suite. In effect, the negative value
tests weren't running on the C/Java implementation.
This patch removes the negative value filter from the transpiler, and
makes the isDimDefined definition consistent between the three
implementations.
2015-03-22 14:36:16 +08:00
daviskoh
9c71cc6d1f
resolve merge conflicts
2015-02-17 21:30:41 -05:00
daviskoh
3a6e50db99
Address eslint errors:
...
* modify .eslintrc w/ globals & rules
* use judgement in deciding bet proj style & eslint recommendation
* make
2015-02-17 21:12:29 -05:00
Christopher Chedeau
5f8c3b0eb7
Update C version
2015-02-04 07:50:15 -08:00
Christopher Chedeau
10fb645777
Initial implementation of flexWrap
2014-12-12 12:03:31 +00:00
Christopher Chedeau
28243156e4
make C and Java tests pass and update their code
2014-12-11 20:23:53 +00:00
Christopher Chedeau
c2aa92cd0b
Add licenses and remove third party libraries
2014-10-29 08:01:22 -07:00
Christopher Chedeau
c0f895c6f2
Make align-items: stretch the default
2014-10-08 09:35:44 -07:00
Andy Street
6d93c20610
Java
2014-10-07 16:22:27 -07:00
Andrew Rasmussen
7eef01f299
make setting bottom/right calculate top/left
2014-09-30 15:24:42 -07:00
Andrew Rasmussen
91786cd2c7
make isUndefined public, add CSS_POSITION_COUNT back
2014-09-30 13:18:03 -07:00
Andrew Rasmussen
0ae8bcf8f6
Add second position: absolute pass
2014-09-30 13:11:32 -07:00
Alex Kotliarskyi
08095b7d2c
Travis CI integration
2014-09-26 18:54:34 -07:00
Alex Kotliarskyi
a047e4d5fe
Automated script to transpile code and tests to C
2014-09-26 17:19:59 -07:00
Andrew Rasmussen
6f347d74a3
Added another pass to calclulate absolutely positioned elements last
2014-09-25 16:05:01 -07:00
Christopher Chedeau
d7f3ea868d
Import latest changes
2014-09-11 09:23:30 -07:00
Christopher Chedeau
9a45599b84
better print utils
2014-06-11 21:00:57 -07:00
Christopher Chedeau
d2ce2420f4
Lots of changes that I forgot to properly commit
2014-06-04 10:51:23 -07:00
Christopher Chedeau
e53bf49746
fix bug where nested align: stretch were not properly working
...
The way the algorithm work is that you first layout fixed children on the main axis, then compute all the dimensions so that you can layout flexible children. This separation doesn't work anymore if we add the other axis. The solution here is a hacky (but working!) attempt at fixing the issue. We start by doing a pass to set the children dimensions if they are stretch.
2014-05-19 12:43:26 -07:00
Christopher Chedeau
eae5cdfe68
-Weverything and fix all the warnings
2014-05-16 18:04:24 -07:00
Christopher Chedeau
0708b5eb75
autogen c version of text from js
2014-04-28 13:06:00 -07:00
Christopher Chedeau
6123dbb33b
initial support for string in c
2014-04-28 12:34:04 -07:00
Christopher Chedeau
c06f48c45f
initial support for text layout
2014-04-26 12:16:27 -07:00
Christopher Chedeau
6fdd724820
backport changes to C
2014-04-25 15:46:56 -07:00
Christopher Chedeau
c63281a064
update C
2014-04-22 17:37:55 -07:00
Christopher Chedeau
aad9fab75f
port latest updates to C
2014-04-22 14:59:59 -07:00
Christopher Chedeau
db510d590a
port changes to C
2014-04-22 13:20:51 -07:00
Christopher Chedeau
13e7e3168b
fix bottom issue
2014-04-19 14:43:51 -07:00
Christopher Chedeau
fb61491805
c print shorthand for margin and padding instead of the 4 versions
2014-04-19 12:19:02 -07:00
Christopher Chedeau
f540de9d3a
probably super wrong but doesn't give random memory issues anymore
2014-04-18 17:19:30 -07:00
Christopher Chedeau
5f2a219394
decouple js tests from jasmine so that we can generate them in c
...
moved the c example inside of test file
added a make test
2014-04-18 16:35:37 -07:00
Christopher Chedeau
02d8f35b9a
use calloc instead of memset and get rid of a duplicated field
2014-04-18 16:03:29 -07:00
Christopher Chedeau
75ab7b6f39
split .c and .h
2014-04-18 16:00:53 -07:00
Scott Wolchok
2fce9254d7
don't separately malloc each child, since the list of children never grows
2014-04-18 14:35:12 -07:00
Scott Wolchok
5498516087
fix memory leak found by valgrind
2014-04-18 13:45:57 -07:00
Scott Wolchok
8cf26abf24
Use isnan(3) to check for NaN
2014-04-18 13:41:14 -07:00
Christopher Chedeau
f34ed85833
s/unsigned int/int/g
2014-04-18 13:17:47 -07:00
Christopher Chedeau
a5a6c2cf8f
stop allocating so much memory for nothing (c is hard)
2014-04-18 13:14:20 -07:00
Christopher Chedeau
ada35b9ba6
auto-gen the C code
2014-04-18 10:37:01 -07:00