Commit Graph

27 Commits

Author SHA1 Message Date
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
Christopher Chedeau
3c7eb7bcfa typo in C, forgot a ! 2014-04-18 10:22:38 -07:00
Christopher Chedeau
e3430169c0 isDimDefined helper 2014-04-18 10:11:37 -07:00
Christopher Chedeau
dd79f7599b remove useless top/left setting 2014-04-18 09:33:14 -07:00
Christopher Chedeau
0e30f00752 OMG IT WORKS IN C!! 2014-04-18 09:32:24 -07:00
Christopher Chedeau
d701273704 omg, there's a proper bool type in C now! 2014-04-18 09:17:05 -07:00
Christopher Chedeau
ded76b867e initial commit of the c port. it compiles but doesn't work 2014-04-18 09:06:42 -07:00