Commit Graph

322 Commits

Author SHA1 Message Date
Panayot Cankov
108f4c287d Inital animations were not played in android, since CSS in android is now applied before the native view is created/assigned 2017-04-12 10:40:45 +03:00
Panayot Cankov
078bd48909 Scaling to zero should be avoided in iOS as the underlying system won't be able to decompose the resulting affine matrix, but in cases of 0 we were setting it to 1, we will now set it to 1e-6. 2017-04-12 10:30:53 +03:00
Panayot Cankov
17b6f1c5f6 Property change notifications raise value and oldValue 2017-04-07 17:12:39 +03:00
Panayot Cankov
92d015b8d8 Animations were always played as keyframes and kept overriding the local values. Android setAlpha has deprecated int overload, now it is guided to use the float one. Android background color was animated using css values instead of local or the keyframe one. 2017-04-06 14:50:40 +03:00
Hristo Hristov
f350f7191d textTransform, whiteSpace & textAlignment defaultValue is now “initia” (#3948)
removed enum namespaces
add valueConverter to clipToBounds
2017-04-06 09:50:37 +03:00
Panayot Cankov
4105083dd4 Fix iOS animations, transition was workin in DIP, when css class is change objects were flickering 2017-04-03 17:17:59 +03:00
vakrilov
740d71a238 Apply page css when using nav-entry with create method 2017-04-03 14:51:57 +03:00
Hristo Hristov
00d82010ae propagate inheritable values only on child added. (#3926)
segmented bar createNativeView returns the nativeView
2017-04-03 11:08:11 +03:00
Hristo Hristov
e802206f0e nativeView not cleared in iOS (#3912) 2017-03-31 11:01:04 +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
84e726e6b9 Resolving comments 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
f8b13acce6 Label textWrap fix for iOS (#3842) 2017-03-21 15:33:52 +02:00
Hristo Hristov
fe54ac6ead Layout round instead of ceiling (#3833)
* Layout round instead of cailing
Add helper method to layout module to convert to/from dips to px and measure the native view
whiteSpace affects layout added for iOS
Fix bug in switch onMeasure implementation
Fix bug in cssValueToDevicePixels iOS implementation
ActionBar for iOS is measured with AT_MOST modifier

* Fix switch measure routine
2017-03-20 16:11:16 +02:00
Hristo Hristov
f165382bb7 Apply gravity in android if LayoutParams have gravity field. (#3814)
ActionBar titleView aligments are applied only if no alignment are set to titleView and after view is added to visual tree otherwise they were reset in addView method
2017-03-20 15:09:23 +02:00
Panayot Cankov
636a3f5036 Fix ios px not converted to dip for sizeThatFits (#3816) 2017-03-16 16:41:38 +02:00
Hristo Deshev
308fa55e02 Fix disappearing list item styles when navigating back to a page.
Do not clear style scope on unload event. Do it when removing child
views instead.
2017-03-16 15:54:59 +02:00
Stanimira Vlaeva
3ea7365871 fix(animations): register both style's "name" and "cssName" (#3810) 2017-03-16 15:20:08 +02:00
Alexander Vakrilov
57bad3f6ff Merge pull request #3804 from NativeScript/borders-clip
Borders clip
2017-03-16 09:43:11 +02:00
vakrilov
4196b9e50b Apply clip when there are any borders in ios 2017-03-15 18:26:59 +02:00
Panayot Cankov
2bd9d6f167 All units ceil up, except percents that do round 2017-03-15 17:49:47 +02:00
Hristo Hristov
7b5ef052fd Tests moved into separate folders (#3794)
Fix android crash on application exit
2017-03-15 12:26:54 +02:00
Hristo Hristov
a64bba62aa whiteSpace default value change to undefined (#3782)
TKUnit default message change to empty string
isSet method is now instance method of Property classes
fix detaching from parent bindingContext - were using oldParent.parent instead of parent
editable-text-base.android - onTextChanged implementation commented. Does nothing.
frame - onCreateView wrapped in try/catch and shows label with exception message if any
text-base.android - should support reset of nativeView. TransformationMethod won’t be set if TextField is secure
Change some types to their string couterparts
TextField.android won’t support multilines anymore in order to work as iOS
In android when page is removed from native backstack we won’t call tearDownUI again a second time
2017-03-14 10:26:45 +02:00
Hristo Deshev
629eb6e683 Use relative imports in tns-core-modules.
Use tns-core-modules/* imports in outside code (apps, tests, etc)
2017-03-13 14:37:59 +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
Panayot Cankov
6d6564af16 Fix dp vs dip conversions in iOS for errors of tests 2017-03-08 09:24:31 +02:00
Panayot Cankov
9f1ebc11ca Add support for 'px' on Length in iOS 2017-03-08 09:01:17 +02:00
Hristo Deshev
b45cbe929b No more ambient modules for tns-core-modules/* subpackages.
- Use path mappings in tsconfig.json to resolve module typings
- Only use ambient mobules for global API's
- Move single-file modules to a subdir with the same name so that
we can provide a hand-written typing next to it (via package.json)
- Delete all mentions of tns-core-modules.d.ts
- Delete reference d.ts assembly build steps. Not needed anymore.
- HACK! Use a <reference> for global typings in application.d.ts
to avoid publishing a separate @types/tns-core-modules package.
- Rename declarations.d.ts to tns-core-modules.d.ts to preserve
JS project mappings in references.d.ts (the only place we use those)
2017-03-07 17:59:02 +02:00
Hristo Hristov
ea22eb9c20 refactoring circular imports 2017-03-06 14:05:55 +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
3066dbd072 Clipping is required for iOS even with uniform borders, as long as the radius is > 0 2017-02-27 16:07:21 +02:00
Panayot Cankov
06970d058a Mass replace fontAttributes with fontWeight and fontStyle 2017-02-23 17:09:19 +02:00
Panayot Cankov
3b8bc17ab4 Fix the font properties to invalidate the layout in iOS 2017-02-23 11:27:50 +02:00
Panayot Cankov
98aa5cd61d Expose the _getByCssName for the angular animations 2017-02-22 17:21:28 +02:00
vakrilov
8a0d98e815 Inset clip path + Background circ-ref 2017-02-21 18:00:48 +02:00
Hristo Deshev
b9c0d33b3a Fix a crash on Button tap - reexport TouchAction 2017-02-20 16:58:11 +02:00
Hristo Hristov
531b33d02b fix background example (#3663) 2017-02-20 13:48:30 +02:00
Hristo Hristov
a582adc561 Hhristov/fix (#3653)
* Fix action-bar systemIcon
Fix CSS applying

* refactoring

* fix console

* remove StyleScope import - it is private and cannot be imported in public .d.ts
2017-02-17 17:21:57 +02:00
Panayot Cankov
e0f0c96519 Expose some private APIs used in the angular animations 2017-02-09 11:43:12 +02:00
Panayot Cankov
b12f112a44 Fixed tslint errors 2017-02-08 17:14:20 +02:00
Panayot Cankov
23658c9719 CssAnimationProperty will register the same way CssProperty in the symbol maps and will register on the style with css name too 2017-02-08 14:01:11 +02:00
Panayot Cankov
fd6c84a6bb Merge pull request #3596 from NativeScript/cankov/modules30-qsf
Animation properties and some backward compatability with the QSF
2017-02-08 10:54:03 +02:00
Panayot Cankov
5265bf0ae3 Animation properties and some backward compatability with the QSF 2017-02-08 10:52:54 +02:00
vakrilov
6c735aff10 View and css proeprties tests 2017-02-07 16:23:19 +02:00
Hristo Hristov
f539dd5f95 Improve background setter in iOS (#3582)
CoercableProperty now inherits from Property
VS Code typescript sdk removed
ViewBase will no longer clear native view if recycleNativeView is false
2017-02-06 11:49:54 +02:00
vakrilov
e5f7c7e4d4 Segmented bar styles 2017-02-01 17:45:14 +02:00
vakrilov
6b61335675 Fix: Modal crashes in Android and IOS 2017-01-30 15:41:45 +02:00
Hristo Hristov
3770f7e636 formatted text fix (#3531)
* Fix formattedText implementation for iOS
Fix typeof undefined checks
Add slow tests message
Improve tests speed

* fix tslint
reduce transitions duration in test

* waitUntilReady will throw if timeout
fix tests that needs to wait without throwing
improve test speed
2017-01-26 18:21:30 +02:00