Commit Graph

251 Commits

Author SHA1 Message Date
Rossen Hristov
4e678a06ff Fix: Images have margin when added to Layout
Resolves #1425
2016-06-14 10:53:07 +03:00
Nedyalko Nikolov
423066ac78 Merge pull request #2299 from NativeScript/nnikolov/BindingConverterFix
Fixed binding converter calls.
2016-06-14 10:46:27 +03:00
atanasovg
c12e12dcdc Rename com.tns.Async.xxx to org.nativescript.widgets.Async.xxx 2016-06-14 10:29:46 +03:00
Hristo Hristov
44be75a624 Move UILableImpl as TNSLabel in widgets. (#2298)
Refactor Label class to the new use TNSLabel class.
Added definitions.
2016-06-13 16:24:39 +03:00
Nedyalko Nikolov
adc8f01cfe Fixed binding converter calls. 2016-06-13 15:20:09 +03:00
Georgi Atanasov
4c54bc841e Merge pull request #2288 from NativeScript/atanasovg/decouple-fragment-class
Decouple Fragment implementation logic from the Extend call.
2016-06-13 11:51:02 +03:00
atanasovg
2740be2b05 Add API ref comments. 2016-06-13 11:10:15 +03:00
atanasovg
ef0577ed56 Decouple Fragment implementation logic from the Extend call. 2016-06-10 18:01:47 +03:00
Rossen Hristov
1818e087e1 Fixed a visual glitch with manual iOS transitions 2016-06-10 16:58:12 +03:00
Rossen Hristov
b514906144 The variable navDepth is now correctly reset to -1 when clearing history 2016-06-10 16:58:11 +03:00
Panayot Cankov
64d9e23d2d Merge pull request #2280 from NativeScript/cankov/async-image-race-fail
Fix setting src on async image mismatching imageSource
2016-06-10 11:43:06 +03:00
Panayot Cankov
20dc0bd7d3 Fix setting src on async image mismatching imageSource 2016-06-10 10:32:22 +03:00
Vasil Chimev
cf06073a26 Merge pull request #2271 from NativeScript/atanasovg/remove-activity-extend
Extract the Activity implementation logic in a separate class.
2016-06-09 08:24:56 -07:00
Panayot Cankov
f8ee993934 Add a check so setting src on async image multiple times wont mismatch imageSource 2016-06-09 15:58:39 +03:00
atanasovg
48f14badca Update the tsconfig and package.json files to reflect the new changes. 2016-06-09 15:19:39 +03:00
Hristo Hristov
192171232e Fix android orientation exception. (#2278)
Fix android activity destroy/resume.
Fix tslint - skipped all from node_modules & platforms
2016-06-09 14:02:15 +03:00
tzraikov
d9800c1220 Merge pull request #2262 from NativeScript/raikov/fix-actionbar
Fixed a crash in action bar on iOS 9.3
2016-06-08 18:44:31 +03:00
Nedyalko Nikolov
e46f30ac26 Merge pull request #2263 from NativeScript/nnikoilov/ListViewUsedInAModalDialogCrash
Fixed crash when ListView is used in a modal dialog (Android).
2016-06-08 18:43:08 +03:00
atanasovg
7220863e36 Remove empty block 2016-06-08 17:28:01 +03:00
atanasovg
92d66f6938 Extract the Activity implementation logic in a separate class. 2016-06-08 17:04:37 +03:00
Hristo Hristov
22608011f2 Avoid excessive requestLayout calls (#2270)
Added View.isLayoutRequired - to check if Layout call is needed after a measure call. Use in list-view.
Measure pass now get all its properties from nativeLayoutParams property instead of using instance dependency properties (e.g. perf improvement).
List-view now layouts cells only if there is need to.
List-view now measure rows with the specified rowHeight.
2016-06-08 15:41:30 +03:00
Hristo Hristov
ec85cf3860 Undefined can be set as localValue to dependency observable (#2268)
* Undefined can be set as localValue to dependency observable

* Fix build error in tests
2016-06-08 15:41:02 +03:00
Panayot Cankov
b65e6f6fda Layout will not requestLayout when its text is changed if it has fixed size 2016-06-08 13:57:49 +03:00
Tsvetan Raikov
5d54ae69f4 Fixed a crash in action bar on iOS 9.3 2016-06-08 11:00:58 +03:00
Nedyalko Nikolov
98a9680bce Fixed crash when ListView is used in a modal dialog (Android). 2016-06-07 15:50:38 +03:00
Hristo Hristov
743a2efb4a Optimized DependencyObject setValue performance (#2260)
* Cached all properties from metadata as fields on Property
ResetValue does not remove entry but only reset value for the given ValueSource (Local by default)
Optimized setValueInternal performance

* Removed TS dependency

* Fix tslint
2016-06-07 15:30:09 +03:00
Rossen Hristov
d1c7eacaac Fixed: Exit transition on API Level 23 with cachePagesOnNavigate=true
When we are on API Level 23 and we have cachePagesOnNavigate=true, the exit transition of the current (disappearing) page ends immediately after its start, which in turn removes the page UI from the fragment and leaves a white spot in place of the current page while the enter transition of the new page is being played.

Related to #2225
2016-06-07 11:50:35 +03:00
Rossen Hristov
bab2bb13d0 More transition fixes and optimizations
Related to  #2225
2016-06-06 15:45:49 +03:00
Rossen Hristov
6a45376a0f Merge pull request #2242 from NativeScript/clear-history
Fixed: The exit transition of the current page is not played
2016-06-06 10:03:56 +03:00
Sebastian Witalec
8fd0476353 Fixing currentEntry bug
The app crashes when it tries to access currentEntry property when _currentEntry is null.
2016-06-05 22:57:19 +01:00
Rossen Hristov
63471fcc3c Fix all possible cases of the current page not playing its exit transition 2016-06-03 17:32:40 +03:00
Rossen Hristov
9e40f8022b Fixed: The exit transition of the current page is not played when navigating with clearHistory
Resolves #2225
2016-06-03 15:48:48 +03:00
Rossen Hristov
17cc067e25 Trying to fix the Travis build. 2016-06-02 15:18:23 +03:00
Rossen Hristov
4cc0d604be Optimize requires 2016-06-02 11:15:44 +03:00
Rossen Hristov
5c47f54fe5 Fixed: The exit transition of the current page is not played when navigating with clearHistory
Resolves #2225
2016-06-02 10:48:30 +03:00
Georgi Atanasov
659d91bfb2 Merge pull request #2214 from NativeScript/atanasovg/expose-fragments-1
[Second Try] Add API that resolves the native android.app.Fragment instance created for a Page
2016-06-01 14:04:26 +03:00
Vladimir Enchev
1deb0149f7 Code fixed 2016-06-01 10:32:28 +03:00
Rossen Hristov
0407aaf5d2 Remove a forgotten console.log 2016-05-31 16:49:07 +03:00
Rossen Hristov
0a8d211665 Enable hardware acceleration for views animations in Android
Resolves #2217
2016-05-31 16:46:19 +03:00
Vladimir Enchev
3b2a875d58 Merge pull request #2220 from NativeScript/livesync-modal
Close current modal page on livesync
2016-05-31 16:20:12 +03:00
Vladimir Enchev
819a45b99a Close current modal page on livesync 2016-05-31 15:58:18 +03:00
Rossen Hristov
503ef1f29d Merge pull request #2216 from NativeScript/cuteness-fix
Fixed a problem with going back with cachePagesOnNavigate
2016-05-31 09:16:10 +03:00
Rossen Hristov
fd9a0c98e6 Merge pull request #2211 from NativeScript/layer-type
Fixed:  Android layerType should not be changed if there is no need
2016-05-31 09:14:04 +03:00
Rossen Hristov
d1620e3387 Fixed a problem with going back with cachePagesOnNavigate
Related to #1948
2016-05-30 17:19:04 +03:00
Rossen Hristov
e2f1e272b4 Fixed: Android layerType should not be changed if there is no need
Resolves #1899
2016-05-30 16:53:09 +03:00
Panayot Cankov
58b4a6eec6 Add 'npm test' for mac 2016-05-30 16:10:57 +03:00
atanasovg
9a8542869e Add fragmentForPage method to AndroidFrame interface. 2016-05-30 16:10:46 +03:00
Hristo Deshev
b812411ce1 Fix SegmentedBar selectedIndex change event when items not bound.
The Android implemantation wasn't raising the event in that case.
2016-05-30 11:49:40 +03:00
Panayot Cankov
717b5131b1 Add isIOS, isAndroid in platform, and fast ts watcher and transpiler
Image should not requestLayout when sized with 'exactly' spec

Update image tests

Tests will run in ios only
2016-05-27 16:57:59 +03:00
Rossen Hristov
719ce1e33e Fixed test_NavigateToNewPage_WithAndroidCache failure on Android API level 17
Unit tests re-factoring and improvements
2016-05-27 13:07:49 +03:00