59 Commits

Author SHA1 Message Date
Kyle Fang
37553d06f6 remove margin-top from flexable-space 2015-02-04 17:08:11 +08:00
Kyle Fang
5f407107a7 Added basic percentage support 2015-02-04 01:44:17 +08:00
Kyle Fang
f89bd41146 Rename sass_layout to sass-layout 2015-02-04 01:18:39 +08:00
Kyle Fang
a2addb8d28 Add _ pass through attributes 2015-02-04 01:07:04 +08:00
Kyle Fang
b004c7bcc3 Adding rendering bit 2015-02-04 00:17:05 +08:00
Kyle Fang
3417e8cce0 Take margin-top in to account when rendering top 2015-02-04 00:06:47 +08:00
Kyle Fang
07595abba2 should layout node with specified width and stretch 2015-02-03 23:43:09 +08:00
Kyle Fang
2e327bb092 should layout node with position: absolute, padding and alignSelf: center 2015-02-03 01:14:24 +08:00
Kyle Fang
f662945e62 should layout node with child with position: absolute and margin 2015-02-03 01:12:43 +08:00
Kyle Fang
4ad5bb6c66 should layout node with position: absolute 2015-02-03 01:04:29 +08:00
Kyle Fang
dff20a8e3b should layout node with both top and bottom 2015-02-03 00:47:52 +08:00
Kyle Fang
bddb23104b Reindent 2015-02-03 00:42:28 +08:00
Kyle Fang
e98677c687 should layout node with bottom 2015-02-03 00:41:44 +08:00
Kyle Fang
9aaf093d6a should layout node with stretch and child with margin 2015-02-03 00:28:27 +08:00
Kyle Fang
688ee10583 should layout node with stretch and child with margin 2015-02-03 00:24:30 +08:00
Kyle Fang
70e3b44f83 should layout node with stretch and child with margin 2015-02-03 00:12:31 +08:00
Kyle Fang
82c762b3f2 should layout node with inner & outer padding and stretch 2015-02-03 00:08:42 +08:00
Kyle Fang
31e18f3eda should layout node with padding and stretch 2015-02-03 00:05:40 +08:00
Kyle Fang
e4edbcc0e1 should layout node with padding and a child with margin 2015-02-02 23:59:34 +08:00
Kyle Fang
9726b7ee5f should layout node with padding and a child 2015-02-02 23:35:26 +08:00
Kyle Fang
2cf3800697 should layout node with padding 2015-02-02 23:11:12 +08:00
Kyle Fang
661aa32379 should layout alignItems stretch and margin 2015-02-02 23:04:14 +08:00
Kyle Fang
cd46726841 should layout flex inside of an empty element 2015-02-02 23:02:13 +08:00
Kyle Fang
c1e41164ed should layout alignItems with margin 2015-02-02 22:56:20 +08:00
Kyle Fang
e72e591ca5 should layout flex-end taking into account margin 2015-02-02 22:19:58 +08:00
Kyle Fang
784c346fe9 should layout for center 2015-02-02 21:39:37 +08:00
Kyle Fang
76e34b91c1 Add flag on altered-width or altered-height 2015-02-02 21:34:54 +08:00
Kyle Fang
ff71b41aaf should not shrink children if not enough space 2015-02-02 21:26:41 +08:00
Kyle Fang
2c28162e05 should layout child with margin 2015-02-02 21:22:56 +08:00
Kyle Fang
f170ba94d2 Bump tests to 21 2015-02-02 21:04:50 +08:00
Kyle Fang
2b559d6376 Pass already 2015-02-02 17:40:27 +08:00
Kyle Fang
88176a9700 should layout node with flex override height 2015-02-02 12:51:21 +08:00
Kyle Fang
1b877c36ef should layout node with justifyContent: center 2015-02-02 12:47:46 +08:00
Kyle Fang
559cb77e6a should layout node with justifyContent: space-around 2015-02-02 12:39:11 +08:00
Kyle Fang
fd0abd2c92 should layout node with justifyContent: space-between 2015-02-02 12:32:28 +08:00
Kyle Fang
a51ede724f Refactor 2015-02-01 23:03:50 +08:00
Kyle Fang
5025c24007 Fix typo 2015-02-01 21:37:55 +08:00
Kyle Fang
4dc95218d0 should layout node with justifyContent: flex-end 2015-02-01 19:04:36 +08:00
Kyle Fang
e53a09cd3c should layout node with targeted margin 2015-02-01 18:11:10 +08:00
Kyle Fang
b68a9f491b should layout node with flex recursively 2015-02-01 18:07:00 +08:00
Kyle Fang
5978c6977e should layout node based on children main dimensions 2015-02-01 16:41:04 +08:00
Kyle Fang
bde6c5dfb8 Add flex-direction 2015-02-01 16:29:47 +08:00
Kyle Fang
31b7154d41 Refactor 2015-02-01 16:26:01 +08:00
Kyle Fang
118e43fdad Refator save-layout to function insteadof mixin 2015-02-01 15:40:10 +08:00
Kyle Fang
f79dbc19f6 Use used-top instead of usedTop 2015-02-01 15:24:56 +08:00
Kyle Fang
d9559c337c Add 'should layout node with several children' 2015-02-01 15:23:07 +08:00
Kyle Fang
4e052f0006 Add margin top and left 2015-02-01 10:11:34 +08:00
Kyle Fang
6e421c4902 Refactor to use one render-one-layout 2015-02-01 10:07:15 +08:00
Kyle Fang
16d1530b6a Rename example to test 2015-02-01 01:06:06 +08:00
Kyle Fang
c374033784 Third down more than 100 to go 2015-02-01 01:00:50 +08:00