Commit Graph

315 Commits

Author SHA1 Message Date
Hristo Hristov
42b267bccc paddings should be taken from style because they could be undefined from newValue (#2433) 2016-07-08 18:18:56 +03:00
Hristo Hristov
8d40782191 Style perf improvements (#2342)
* Add css-perf app.

* Style properties now check only properties that are set.
Image utils module required on top (instead of in onMeasure) to improve performance.
Remove try/catch block when Style applies native property.

* fix tslint

* Fix broken merge
Update package.json version

* Failed miserably - if the try/catch around applyProperty method is removed - TextField fails big time.
TextField needs some good refactoring as well as calls to _updateTextDecoration & _updateTextTransform
utils - setTextTransform & setTextDecoration should be split, typing support should be added.
2016-07-08 14:39:43 +03:00
Hristo Hristov
bc1224e351 android LayoutParams are not overridden (#2383)
* LayoutParams are no longer overriden with CommonLayoutParams

* Small code refactoring to get intellisense
2016-06-29 17:13:37 +03:00
Rossen Hristov
7d3fb56def Move border properties to Background to avoid unnecessary refreshes. 2016-06-27 09:41:53 +03:00
Tsvetan Raikov
b018ac20f0 Fixed: Animations look wrong when applying 0 scale 2016-06-22 13:07:15 +03:00
tzraikov
d0ca57c099 Merge pull request #2315 from NativeScript/raikov/fix-2209
Fixed: CSS-Animation w/ iteration-count:infinite is never reset causing out of memory
2016-06-17 18:07:24 +03:00
tzraikov
6275c71c85 Merge pull request #2266 from NativeScript/raikov/fix-animationsync
Fixed animation value sync issues
2016-06-17 17:53:51 +03:00
Nedyalko Nikolov
7fbfc92155 Fixed issue #1655 cascading css selectors. 2016-06-16 09:43:19 +03:00
Tsvetan Raikov
a53523cbc3 Fixed: CSS-Animation w/ iteration-count:infinite is never reset causing OutOfMemory error 2016-06-15 10:32:37 +03:00
Tsvetan Raikov
d810a779fe Fixed animation value sync issues 2016-06-14 11:31:04 +03:00
Nedyalko Nikolov
adc8f01cfe Fixed binding converter calls. 2016-06-13 15:20:09 +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
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
Panayot Cankov
e135c20b14 Rename the files 2016-05-26 14:30:25 +03:00