Commit Graph

21 Commits

Author SHA1 Message Date
Hristo Hristov
9e3222781a backgroundImage property now use Fetcher & Cache as Image component (#4030)
* backgroundImage property now use Fetcher & Cache as Image component
Fix GridLayout tests on iPhone Plus - actualLength wasn’t rounded
ImageCache is closed when activity is stopped

* Fix reset of background drawable.

* additional check for drawable

* imageCache init cache on activity Started
2017-04-21 16:50:12 +03:00
Hristo Deshev
04b9b39c65 Fix doc snippets. (#3882)
* Remove a duplicate snippet: image-create-datauri
* Remove a reference to a missing snippet: console-dump
* Readd a missing snippet: imagesource-resname
* Fix a broken snippet reference: timer-set-ten
* Fix a broken snippet reference: timer-set-fifty
2017-03-28 11:04:37 +03: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
Hristo Hristov
ea22eb9c20 refactoring circular imports 2017-03-06 14:05:55 +02:00
vakrilov
cd3cd13075 View tests turned green 2017-01-11 17:34:25 +02:00
vakrilov
6eb1aee4d1 Image tests 2017-01-06 15:43:57 +02:00
PanayotCankov
7931ecd4f8 Fix tslint errors 2016-12-21 17:42:31 +02:00
Panayot Cankov
6feeb140e3 Fixing type errors in tests 2016-12-19 10:36:25 +02:00
Hristo Hristov
c5d34c3dd4 Image loading is done through native imageView so that once it is removed from window the bitmap is cleared. 2016-11-02 16:57:42 +02:00
Hristo Hristov
644f4c2845 ImageSource was reset in CreateUI wrongly. (#2910)
TabView doesn't save/restore its visual hierarchy.
Cuteness.io source changed to use https.
2016-10-17 13:40:03 +03:00
Hristo Hristov
98deeccb21 Change image.android to use the new image.Cache class from widgets. (#2832)
* Change image.android to use the new image.Cahce class from widgets.

* fix npm scripts

* npm tsc will compile all so no need for npm run dev-tsc-tests

* fix tslint error

* image-tests use memory only cache.

* fix exception in image.android

* Change image-tests so that Image won't be GC immediately.

* Change cacheMode to enum
2016-10-05 13:09:08 +03:00
Tsvetan Raikov
1b568b56ca Added tintColor property in Image view. It should be used instead of color 2016-09-16 16:29:08 +03:00
Tsvetan Raikov
500459779e Added unit test that tests tintColor in Image class 2016-08-31 18:48:01 +03:00
Panayot Cankov
1236f66f44 Add npm script that generates ios .d.ts-es from the tests app
Less than 30 erros left, let's hope it still works

Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills

Roll back some changes involved in separating UIEvent for dom and ios

Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
2016-08-29 09:58:17 +03:00
Rossen Hristov
be62b27e1d Refactoring 2016-06-14 14:42:25 +03:00
Rossen Hristov
68c705b56f Decrease image size to fit on test device 2016-06-14 13:42:46 +03:00
Rossen Hristov
4e678a06ff Fix: Images have margin when added to Layout
Resolves #1425
2016-06-14 10:53:07 +03: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
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
Panayot Cankov
e135c20b14 Rename the files 2016-05-26 14:30:25 +03:00