Commit Graph

4579 Commits

Author SHA1 Message Date
Panayot Cankov
35be4bc40a Animations improperly reset (#4900)
* Animations improperly reset

* Scope stop and start of animations to avoid blinks
2017-10-03 15:50:09 +03:00
Panayot Cankov
1049fcc251 Revert _applyXMLAttributes to set style, rows, columns and fontAttributes as properties (#4911) 2017-10-03 15:40:27 +03:00
Hristo Hristov
27773e96a6 Initial transitions are ingored on android (as they are on ios) because on API 21+ Transition class requires at least one layout pass before transitions are executed. If we don't ignore it our transition handlers won't execute and frame navigation won't execute because it thinks there is a pending navigation. (#4896)
Fix https://github.com/NativeScript/NativeScript/issues/4895
2017-09-28 09:19:06 +03:00
Hristo Hristov
9b52bbcd29 If you set tap gesture on a button parent (e.g. some layout for example) and set tap handler on the button and click the button there is a chance to execute navigation with clear history. This will remove current fragment and will clear the button listener owner. Still android will fire the click handler and we will throw an exception. (#4898)
Fix https://github.com/NativeScript/NativeScript/issues/4897
2017-09-28 09:17:54 +03:00
Panayot Cankov
d64bb1976e Revert using inline source map, we should do this only in development (#4890) 2017-09-26 13:48:00 +03:00
Alexander Vakrilov
1e47117179 fix: DatePicker month off by 1 in Android (#4872) 2017-09-26 09:44:33 +03:00
Panayot Cankov
6d7c1ff295 Avoid applying CSS multiple times (#4784)
* Move the applyStyleFromScope to onLoaded, when the views are created and id or className properties are set the CSS selectors are queried and applied multiple times

* Condense the changes when applying properties
2017-09-25 18:32:00 +03:00
Evan Payne
b0577728be Return true if user has consumed the action (#4859)
Based on this: https://developer.android.com/reference/android/widget/TextView.OnEditorActionListener.html
And assuming that the developer will run dismissSoftInput in the owner.dismissSoftInput() only if they need to.
Returning False will close the keyboard regardless.
2017-09-25 15:46:01 +03:00
Alexander Vakrilov
d8caf5583c chore(doc): Fixed coding convention link 2017-09-25 15:05:01 +03:00
Emil Tabakov
2f0d3b0e0b Add RssFeed to the ContentTypes considered as text (#4820) 2017-09-09 15:45:07 +03:00
Vasil Chimev
9ad297f2d7 Update changelog for 3.2.0 (#4809) 2017-09-07 14:35:13 +03:00
Nikolay Tsonev
ea9213b243 edit broken page snippet tag (#4776)
* edit broken page snippet tag

* Increase timeout for HTTP tests (#4775)

* Typos (#4789)

* TypeScript 2.5 compatibility (#4794)

* edit broken page snippet tag

* fix(date-picker): Date picker changed check (#4797)

* edit broken page snippet tag
2017-09-05 18:23:46 +03:00
Nikolay Tsonev
cf48c9f6dd edit broken link (#4799) 2017-09-05 18:22:26 +03:00
Alexander Vakrilov
d0b3e0c536 fix(date-picker): Date picker changed check (#4797) 2017-09-05 13:42:06 +03:00
Alexander Vakrilov
28b6eba9ac TypeScript 2.5 compatibility (#4794) 2017-09-04 14:36:34 +03:00
Brad Martin
a79a83ce82 Typos (#4789) 2017-09-04 11:09:36 +03:00
Alexander Vakrilov
3e38eb4b2f Increase timeout for HTTP tests (#4775) 2017-08-30 13:30:53 +03:00
SvetoslavTsenov
966a256a28 Bump version to 3.3.0 (#4771) 2017-08-29 18:51:00 +03:00
SvetoslavTsenov
c12b287227 Update scrolling-and-sizing tests to be compatible with lower resolutions (#4770) 2017-08-29 15:58:50 +03:00
Panayot Cankov
12c0199fb5 UIScrollViews will now report 'scroll' events and the background in ios will adjust added layers (#4762) 2017-08-29 10:25:45 +03:00
SvetoslavTsenov
3fd65cce9f Include ui tests for focus/ blur events for text-view and text-field (#4765)
* Include ui tests for focus/ blur events for text-view and text-field

* Update main-page.ts
2017-08-28 23:29:56 +03:00
Panayot Cankov
7c9fceec65 Delete the layer type tests, for now the layer type is the default (#4763) 2017-08-28 18:05:05 +03:00
SvetoslavTsenov
03a0ac75b1 Include assert to test_NavigateToNewPage_WithAndroidCache for reuse native views on forward navigation (#4764) 2017-08-28 17:16:41 +03:00
Hristo Hristov
617fa92efc Fix MultiTemplateParser to not eat its closing tag (#4756) 2017-08-25 17:44:10 +03:00
Hristo Hristov
457407ebeb Fix https://github.com/NativeScript/NativeScript/issues/4419 (#4754)
mimeTpye set to "application/octet-stream" according to RFC if content-type is not specified.
See: http://mattryall.net/blog/2008/03/default-content-type, https://stackoverflow.com/questions/1176022/unknown-file-type-mime
2017-08-25 13:29:54 +03:00
Eddy Verbruggen
f00ec1a966 Add a 'focus' even to text input fields (#4730) 2017-08-25 11:22:47 +03:00
Daniel Leal
92471c660e fix: uuid for ios changed on IOS v7 (#4681) 2017-08-25 11:19:56 +03:00
Hristo Hristov
c98443b331 Fix breaking change - nativeView property should have setter (#4750)
Exposed savedInstanceState on LaunchEventArgs so some controls that need Bundle to initialize could get it from there.
2017-08-25 11:13:51 +03:00
Panayot Cankov
d62df3789c Do not change the Android layer types (hardware/software) (#4625) 2017-08-25 10:45:58 +03:00
Alexander Vakrilov
ab42715089 FIX: Async test runner check-timeout bumped. (#4751) 2017-08-24 18:52:05 +03:00
Panayot Cankov
3a16e72ebf Add 'npm run madge-ios' and 'npm run madge-android' to list circular dependencies (#4748) 2017-08-24 13:39:06 +03:00
Panayot Cankov
3a447b6f3f Added @profile on several key methods in the Android lifecycle, refactored by extracting into methods a little (#4685) 2017-08-24 13:10:53 +03:00
Daniel Leal
7b364613da fix: typo on android utils, getPalleteColor to getPaletteColor (#4687)
* fix: typo on android, getPalleteColor to getPaletteColor

* fix: adress comments
2017-08-24 11:55:31 +03:00
Alexander Vakrilov
1171da2742 fix(image-source): Fix test for base64 image source for android API 26 (#4741) 2017-08-24 11:17:53 +03:00
Hristo Hristov
b6d5510627 Fix crash where some android Drawables doesn't implement getConstantState... (#4742)
Changed all places where getConstantState was used.
2017-08-24 11:06:33 +03:00
Panayot Cankov
d6689a04b2 Add the this.toString in the profile traces (#4731) 2017-08-24 11:04:46 +03:00
Hristo Hristov
06ad345015 Fix issue 4302 (#4723)
Fix tests for that issue
2017-08-22 09:52:07 +03:00
Hristo Hristov
9bcf4ef460 Removes list-view selected state when rowHeight is set (#4725) 2017-08-22 09:50:54 +03:00
Eddy Verbruggen
6e06eba218 Fixed a bunch of typo's and minor errors in TypeScript definition files. (#4707)
* Fix a bunch of typo's and minor errors in TypeScript definition files.

* Implemented the requested change by @hshristov
2017-08-21 11:22:04 +03:00
Alexander Vakrilov
121ad5de01 Enable evaluating in Chrome Console (#3405) (#4713)
Chrome calls compileScript method when an expression is evaluated in the console. So to enable the console evaluate add an empty compileScript implementation.
Also send an Runtime.executionContextCreated which is needed for Console evaluation.
Both of the command and the event do not exist in the Webkit protocol, so we cannot use InspectorBackendCommands definition file
2017-08-18 15:56:17 +03:00
Hristo Hristov
bba7a82bdf Disable recycling, refactoring & fixes (#4705)
* Added tests for native view recycling
Disabled android native view recycling
Move toString from view-common to view-base
Fix crash on application restore and navigation back on API26
Added setAsRootView method
Added missing logo into perf-tests/recycling app

* additional fix for image-source-tests. ios is case sensitive.

* Add @private to some internal properties
Fix where padding is not respected when background is reset.
2017-08-17 09:15:35 +03:00
Hristo Hristov
2701ea3c1e Fix failing test on ios 11 (#4686)
Add new perf-test page for view recycling
Changed the initialization of TextTransformation field
2017-08-16 15:19:01 +03:00
SvetoslavTsenov
172152a897 Update link in webView test page (#4684) 2017-08-10 15:36:09 +03:00
SvetoslavTsenov
93d940d6d2 Remove gallery app and include new tests in uitests app (#4679) 2017-08-09 17:12:12 +03:00
Stanimira Vlaeva
08dcfabe82 refactor(date-picker): value converter for month is 1-based (#4656) 2017-08-08 17:07:21 +03:00
Hristo Hristov
24923445bd Image cache is cleared when livesync happens (#4672) 2017-08-08 16:52:39 +03:00
Hristo Hristov
2c27b1ac7a Cache android.widget.SeekBar as SeekBar for better performance (#4669)
* Cache android.widget.SeekBar as SeekBar for better performance
Made singleton listener for SeekBar
Fix slider issue
Add slider test

* Futher refactoring
2017-08-08 16:04:41 +03:00
Vasil Chimev
ca8a2eeed0 @types/handlebars@4.0.33 (#4667) 2017-08-08 13:09:37 +03:00
Alexander Vakrilov
50d399101e Fixes TabView icons changes. (#4666)
* Fixes TabView icons/title changes.

* Access TabLayput trough parent

* TabView icon change example
2017-08-08 13:06:56 +03:00
Alexander Vakrilov
d8f0430fef Changelog updated for 3.1.1 (#4663) 2017-08-07 17:51:37 +03:00