68 Commits

Author SHA1 Message Date
0cae034a64 Changing module docs so they can appear in typedoc. 2017-05-10 11:55:47 +03:00
25849a1425 implement get/set for selectedBackgroundColor property (#4039)
* implement get/set for selectedBackgroundColor property

* list-view separator color exposed through style

* Style androidStatusBarBackground exposed on Page
2017-04-21 17:57:25 +03:00
5457424766 Expose statusBarStyle on page (#4021) 2017-04-21 17:16:57 +03:00
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
d098ff43f5 Add module names for the typedoc, make it work
Mark members with @private for typedoc.
2017-04-20 16:58:30 +03:00
740d71a238 Apply page css when using nav-entry with create method 2017-04-03 14:51:57 +03:00
e6250e718a Disable recycling of native views
createNativeView will set iOS nativeView if it is null/undefined
2017-03-28 18:08:59 +03:00
c18a76c93a rename:
_createNativeView to createNativeView;
_initNativeView to initNativeView
_disposeNativeView to disposeNativeView
_resetNativeView to resetNativeView
2017-03-28 18:08:59 +03:00
f2898f84d5 NativeView recycled for android 2017-03-28 18:08:59 +03:00
2b28730011 Split get/set native to getDefault setNative 2017-03-22 16:37:52 +02:00
9d67e44cdf Work around an issue with webpack's extension resolution.
Not resolving ../utils imports.
2017-03-20 16:12:10 +02:00
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
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
cec256f809 Fix modal page ios dips 2017-03-10 11:28:01 +02:00
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
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
b7a32153d8 Fix: Make status-bar properties CSS again 2017-03-07 15:27:27 +02:00
ea22eb9c20 refactoring circular imports 2017-03-06 14:05:55 +02:00
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
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
6b61335675 Fix: Modal crashes in Android and IOS 2017-01-30 15:41:45 +02:00
00589c801d FIX: disappearing navigation bar on back 2017-01-27 15:00:33 +02:00
d448f3dc7f Animated nav-bar 2017-01-25 10:48:48 +02:00
329ba3a2c5 Page tests fix. 2017-01-16 19:28:08 +02:00
fec5e92dbe Fix tracing 2017-01-16 13:29:46 +02:00
f634f29df0 Frame test 2017-01-10 14:08:54 +02:00
a2d2f65adc Call resetCSSProperties instead of resetStyleProperties from _resetCssValues 2017-01-06 14:06:32 +02:00
43f5f117a7 Fix minor tslint errors 2017-01-04 17:37:56 +02:00
ea95d1d854 remove unneeded applyNativeSetters 2017-01-04 17:18:45 +02:00
c30be0d606 View lifecycle methods 2017-01-04 17:18:45 +02:00
ac59c1b082 Add nativeView in page.ios.ts and get the UIViewControler view as nativeView 2016-12-27 13:12:58 +02:00
70cc1dd5d9 Move the effective* values from style to this 2016-12-27 10:57:10 +02:00
7931ecd4f8 Fix tslint errors 2016-12-21 17:42:31 +02:00
f5905f072d fix tab-view, segmented-bar, action-bar, all ViewBases (#3340) 2016-12-21 12:02:02 +02:00
63e4139a65 Merge branch 'hhristov/modules30' into alignments 2016-12-19 17:27:49 +02:00
8ac7c8d574 HorizontalAlignment and VerticalAlignment 2016-12-19 16:25:08 +02:00
6feeb140e3 Fixing type errors in tests 2016-12-19 10:36:25 +02:00
f75f583573 tns-core-modules done 2016-12-13 15:51:18 +02:00
19ee47ba24 got to layouts 2016-12-13 15:51:18 +02:00
befb494a50 up to segmented-bar.ios 2016-12-13 15:51:18 +02:00
fac4f42503 adding features deleted from rebase 2016-12-13 15:51:18 +02:00
1202cb7288 almost all without layouts 2016-12-13 15:51:18 +02:00
a64847ca9d next 2016-12-13 15:51:18 +02:00
bb2c7aa60a partial state 2016-12-13 15:51:18 +02:00
2e13205797 CSS support for styling status bar (#3156) 2016-11-24 14:20:12 +02:00
2d640ddeda Merge pull request #3093 from NativeScript/raikov/fix-2870
Fixed: ActionBar w/translucent navigationBar set to false is creating whitish transition
2016-11-24 13:16:35 +02:00
91083a4ea4 Fix: Modal dialogs don't have background color
Resolves #3129
2016-11-21 14:07:46 +02:00
3f578741f7 Fixed: ActionBar w/translucent navigationBar set to false is creating whitish transition 2016-11-15 13:11:04 +02:00
a0cd3b0f39 Fixed: jumping action bar reported in #2941 2016-11-10 11:21:05 +02:00
75cab33f8f Percent support of margin of layouts/frame/page/contentview 2016-10-20 11:29:21 +03:00