Commit Graph

20 Commits

Author SHA1 Message Date
Panayot Cankov
7986e479cd Performance improvements after profiling the android flexbox example 2017-05-18 18:00:31 +03:00
Hristo Hristov
e6250e718a Disable recycling of native views
createNativeView will set iOS nativeView if it is null/undefined
2017-03-28 18:08:59 +03:00
Hristo Hristov
c18a76c93a rename:
_createNativeView to createNativeView;
_initNativeView to initNativeView
_disposeNativeView to disposeNativeView
_resetNativeView to resetNativeView
2017-03-28 18:08:59 +03:00
Hristo Hristov
f2898f84d5 NativeView recycled for android 2017-03-28 18:08:59 +03:00
Panayot Cankov
2b28730011 Split get/set native to getDefault setNative 2017-03-22 16:37:52 +02:00
Hristo Hristov
1d49f5f3c3 fix padding on text-view & text-field (#3758)
* fix padding on text-view & text-field
text-base is now snapshotable
view.android is now snapshotable

* createNativeView returns the nativeView for android
Fix image tests
Implement test for image loaded from res://
EffectivePaddings updated when nativeView have some from its native theme
2017-03-09 16:09:53 +02:00
Hristo Hristov
33aa48bdfd Add support for snapshot
Fix Layout class getMeasuredWidth & getMeasuredHeight
Move some classes to widgets
Fix API17 tests
2017-03-06 14:05:55 +02:00
Panayot Cankov
43f5f117a7 Fix minor tslint errors 2017-01-04 17:37:56 +02:00
vakrilov
c30be0d606 View lifecycle methods 2017-01-04 17:18:45 +02:00
Panayot Cankov
9bf411b7f6 Update _updateNativeLayoutParams and fix minWidth/Height for ios flexbox 2017-01-04 16:51:06 +02:00
Panayot Cankov
4ae6473e48 fix flexbox tests 2017-01-04 11:55:05 +02:00
Panayot Cankov
70cc1dd5d9 Move the effective* values from style to this 2016-12-27 10:57:10 +02:00
Hristo Hristov
c71b4d4bf1 Hhristov/modules30 fixes (#3321)
* Fixed bindings, several css properties, attached properties

* Fix valueChanged handlers
Fix double registration of width/height property handlers

* fix broken merge
2016-12-19 17:52:18 +02:00
Hristo Hristov
e97fd105e3 Fix missing exports 2016-12-14 13:59:50 +02:00
Hristo Hristov
f75f583573 tns-core-modules done 2016-12-13 15:51:18 +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
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