Christopher Chedeau
a36820d15e
better handling for padding in a top/bottom or left/right configuration
2014-06-12 11:52:07 -07:00
Christopher Chedeau
900beefa1e
height overrides top+bottom
2014-06-12 11:43:30 -07:00
Christopher Chedeau
51957d5645
main axis padding
2014-06-12 11:36:57 -07:00
Christopher Chedeau
842d654b0f
overlapping left and right + workaround chrome bug
2014-06-12 11:27:49 -07:00
Christopher Chedeau
694e181b8e
split the absolute loop to make main axis work
2014-06-12 10:22:57 -07:00
Christopher Chedeau
1c9749f93e
actually make work left and right
2014-06-12 10:09:42 -07:00
Christopher Chedeau
cc11a535ce
left and right, first pass
2014-06-12 10:05:00 -07:00
Christopher Chedeau
7c157cbb50
right and negative margin
2014-06-11 22:07:36 -07:00
Christopher Chedeau
7506908814
initial position: absolute; right: 5;
2014-06-11 21:44:46 -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
6123dbb33b
initial support for string in c
2014-04-28 12:34:04 -07:00
Christopher Chedeau
a0ffafe37d
support <Text>
2014-04-26 19:02:16 -07:00
Christopher Chedeau
61919a1b2f
text with padding and margin
2014-04-26 17:11:22 -07:00
Christopher Chedeau
8ca7bd0ccb
make text with specific width work. plus a lot of hacks to manage dependencies. need to clean it up
2014-04-26 12:46:21 -07:00
Christopher Chedeau
c06f48c45f
initial support for text layout
2014-04-26 12:16:27 -07:00
Christopher Chedeau
3dbd168938
handle negative margin and min padding correctly
2014-04-22 17:33:08 -07:00
Christopher Chedeau
01ccc098c9
handle negative width properly
2014-04-22 17:19:21 -07:00
Christopher Chedeau
aad9fab75f
port latest updates to C
2014-04-22 14:59:59 -07:00
Christopher Chedeau
fa2f7080e2
fix reduce from being called on every single test.
...
stretch now won't go below the padding
2014-04-22 13:32:45 -07:00
Christopher Chedeau
e9f45ef4e9
yay, now supports negative spacing!
2014-04-22 11:51:21 -07:00
Christopher Chedeau
a22194b6c0
support border and position absolute for cross axis
2014-04-22 11:44:19 -07:00
Christopher Chedeau
b6f3bbc3b8
absolute child and parent border main axis. s/getPadding/getPaddingAndBorder/
2014-04-22 11:40:31 -07:00
Christopher Chedeau
3d280fe3f1
initial support for borderWidth
2014-04-22 11:31:42 -07:00
Christopher Chedeau
5922c88f84
double flex and position absolute
2014-04-22 10:21:17 -07:00
Christopher Chedeau
a18bc27c6b
flex and position absolute
2014-04-22 10:02:33 -07:00
Christopher Chedeau
f564effb5c
flex overflow
2014-04-22 09:56:48 -07:00
Christopher Chedeau
4dd147e92a
multiple flex and margin
2014-04-22 09:53:54 -07:00
Christopher Chedeau
fce826f18b
multiple flex and padding
2014-04-22 09:48:33 -07:00
Christopher Chedeau
bda6b23b8b
flex and main axis margin
2014-04-22 09:38:17 -07:00
Christopher Chedeau
f5b738338d
auto reduce test cases in randomly generated tests and fix position absolute within space-around
2014-04-22 09:32:49 -07:00
Christopher Chedeau
37c518943e
increase the random factor in order to get more failing tests :)
2014-04-21 18:50:34 -07:00
Christopher Chedeau
78315b5bbf
absolute, left, marginLeft
2014-04-21 18:45:57 -07:00
Christopher Chedeau
6da9e221d6
absolute, top and marginTop
2014-04-21 18:45:01 -07:00
Christopher Chedeau
b11c04ed0f
cross axis left and padding
2014-04-21 18:40:00 -07:00
Christopher Chedeau
756babcdb7
position: absolute, top and left
2014-04-21 18:34:28 -07:00
Christopher Chedeau
39cc1e9b01
position: absolute should respect cross padding
2014-04-21 17:31:04 -07:00
Christopher Chedeau
d5b5ccf56b
specific width and stretch should favor the specific width
2014-04-21 17:16:32 -07:00
Christopher Chedeau
a17fc43756
handling when height/width is smaller than the padding
2014-04-21 17:07:05 -07:00
Christopher Chedeau
97c4109434
Add reduceTest util
2014-04-21 16:52:53 -07:00
Christopher Chedeau
9760cfd323
position: absolute and alignSelf
2014-04-21 14:58:44 -07:00
Christopher Chedeau
72e2d959f2
handle position: absolute margin as child correctly
2014-04-21 14:53:02 -07:00
Christopher Chedeau
ddcca9107b
support position: absolute without top/left/bottom/right set
2014-04-21 14:29:17 -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
47faaffef2
remove horizontal/vertical support
2014-04-18 09:06:22 -07:00
Christopher Chedeau
7ad8da74e0
move tests to __tests__
2014-04-16 18:57:09 -07:00