Commit Graph

9 Commits

Author SHA1 Message Date
Panayot Cankov
56cd220c17 FlexboxLayout profiling and improvements (#3173)
* It looks like inline styles are making the flexbox example slow

* FlexboxLayout createReorderIndices proper overload

* Remove the getLayoutParams

* Removed unnecessary reorder methods

* Fix tslint errors
2016-11-30 11:30:02 +02:00
PanayotCankov
2bf7b07bf6 Add validation/parsing for the FlexboxLayout properties
Make FlexboxLayout work with CSS properties, shorhands are not yet supported

Make shorthand properties

Remove redundant logging
2016-11-10 11:16:24 +02:00
Panayot Cankov
45578430ac Merge pull request #3020 from NativeScript/flexbox-last-noshrink-fix
Shrink will not damage the last item when it is shrink=0
2016-11-07 13:14:24 +02:00
PanayotCankov
bac125efc1 Shrink will not damage the last item when it is shrink=0 2016-11-04 12:12:28 +02:00
PanayotCankov
f79ed04671 Fix flexbox crash for iOS 2016-11-04 11:30:21 +02:00
Panayot Cankov
ae02bbdff3 Fix order set at runtime, polish unit test app example.
Add alignSelf nad flexWrapBefore in the flexbox examples

Some test fail with quite close calculations. Use eps.

Fix flex grow making last items with flexGrow 0 to shrink due to rounding, happy tslint
2016-10-24 14:34:26 +03:00
Panayot Cankov
791aab04e5 Flexbox ios initial commit
Items now appear, but they should initially shrink and they don't

Add 15-ish tests for flexbox layout

Port reasonable flexbox test set

Fixing issues, adding unit tests

Moved from .tsx to .ts and used our ui/builder.parse
2016-10-19 17:02:26 +03:00
Panayot Cankov
b5ab387ebd Fix the LayoutParams 2016-09-30 17:36:17 +03:00
Panayot Cankov
943e67a4c8 Add flexbox, we have to figure out layout params 2016-09-30 12:20:07 +03:00