Manol Donev
4f39fb728b
chore: update tslint rules ( #7391 )
2019-06-26 15:13:48 +03:00
Martin Yankov
d60e5dace4
refactor: platform specific logic from view common
2019-05-21 13:42:10 +03:00
Martin Yankov
15e38db3a6
Merge branch 'master' into myankov/merge-release-to-master
2019-05-08 10:17:30 +03:00
Vladimir Amiorkov
aa44eb950e
fix(ios-modal): closeCallback not being called with popover presentation style ( #7189 )
2019-05-07 17:09:39 +03:00
Martin Yankov
83ae729a6a
Merge branch 'master' into myankov/merge
2019-03-29 13:39:13 +02:00
Martin Yankov
1dc395215d
fix(ios): flat action bar incorrect layout after navigation ( #7077 )
...
* fix(action-bar): incorrect layout after navigation
* set extended layout for opaque bars earlier
2019-03-29 13:36:45 +02:00
Manol Donev
34fe24732d
chore: deprecate utils.ios.getter ( #7054 )
2019-03-22 17:33:21 +02:00
Martin Yankov
a9d2043a0c
fix(ios): resize of scrollview content breaks layout ( #6965 )
2019-02-28 10:20:21 +02:00
Martin Yankov
09fa0856b8
fix(ios): opaque bars break ui layout ( #6929 )
...
* fix(ios): opaque bars break ui layout
* test(): change flat action bar tests
* test(): revert test flat change test
2019-02-20 18:46:14 +02:00
Manol Donev
08acd84fe2
fix(ios): native view frame optimizations in nested scenario ( #6809 )
2019-01-23 11:09:04 +02:00
Nikolay Tsonev
3a8c3fca75
feat(modals): option to make dialogs cancelable in Android ( #6765 )
2019-01-08 16:56:30 +02:00
Manol Donev
1ae0cfd4b3
refactor: cleanup unused elements ( #6732 )
2019-01-02 11:17:55 +02:00
Nicu
540b2b4f82
feat(view): added iOS parameter for modal presentation style ( #6409 )
...
* feat(view): added iOS parameter for modal presentation style
* Now passing options to showModal in one argument
* refactor: Move context and close in modal options
* chore: Comments added for UIModalPresentationStyle.Popover case
* refactor: Use modalOptions in e2e demo
* chore: fix pbroken test
2018-12-13 17:03:25 +02:00
Martin Yankov
63be78a69c
fix(listview): incorrect layout when scroll ( #6656 )
2018-12-05 16:28:37 +02:00
Alexander Vakrilov
64bccb9bbc
feat(modals): Enable modal dialog chaining in IOS ( #6637 )
...
* feat(modals): fire close callback after close in IOS
* chore(tests): Fix some test depending on the order of events
2018-11-30 12:05:33 +02:00
Martin Yankov
51a191f396
fix(ios): safe area handling in scrollview ( #6561 )
2018-11-15 13:07:15 +00:00
Manol Donev
7fbdc7adc8
fix: layoutChanged event in landscape ( #6520 )
2018-11-07 14:23:02 +02:00
Martin Yankov
58c9d424f5
fix-next(ios): handle nesting in proxyViewContainer ng ( #6475 )
2018-10-30 14:00:00 +02:00
Martin Yankov
7625d6cb21
fix-next: handle view controller nesting in ng ( #6472 )
2018-10-29 19:22:30 +02:00
Todor Petrov
f5cca13a7c
fix-next: correct raising of layoutChanged event ( #6457 )
...
Currently the layoutChanged event can be raised even when there is no change due to safe area calculations.
2018-10-26 17:03:23 +03:00
Martin Yankov
e48782511d
fix-next: handle action bar safe area nesting ( #6455 )
2018-10-26 14:05:14 +03:00
Martin Yankov
dfa208a54d
fix-next: apply ios safe area before transform ( #6443 )
2018-10-23 13:38:02 +03:00
Martin Yankov
7e891a91f9
fix-next: restrict to safe area when transform ( #6405 )
2018-10-15 10:17:56 +03:00
Martin Yankov
04233b65c1
fix-next: ios 10 safe area backwards compat ( #6364 )
...
* fix-next: ios 10 safe area backwards compat
* refactor: update a comment
* fix-next: ios 10 page on layout fix
* fix-next: handle ios 11 flat action bar
2018-10-09 10:16:31 +03:00
Vasil Chimev
982acdc168
feat(iOS): Safe Area Support ( #6230 )
2018-09-28 18:21:50 +03:00
Martin Guillon
46705ee332
refactor(core-modules): implement createNativeView and initNativeView for all components
...
refactor(core-modules): implement createNativeView and initNativeView for all components
2018-09-26 13:59:12 +03:00
Manol Donev
262568314b
feat: add ability to pass touch event thru parent view ( #6204 )
...
* feat: enhance hit-testing support
* refactor(android): update passthroughParent logic as per reqs
* refactor: move isPassthroughParentEnabled to LayoutBase
* Update view-common.ts
* refactor: touchListener logic
* refactor: renames
* added ui test page
2018-09-18 18:59:40 +03:00
Alexander Vakrilov
b5b8d51b0d
fix(modal): parent page invalid hierarchy handling [extended] ( #5966 )
...
* fix(modal): parent page invalid hierarchy handling
* refactor(modals): Refactor safe guard in show/hide modal
2018-06-20 16:10:03 +03:00
Alexander Vakrilov
4b5754a6d4
fix(ios): safeAreaLayoutGuide fallback for iOS 10 cases ( #5960 )
2018-06-20 07:28:06 +03:00
Alexander Djenkov
e59d1567a5
fix(ios-dialogs): unable to show dialog from modal view without a page ( #5881 )
...
* fix(ios-dialogs): unable to show dialog from modal view
* tests(modal-navigation): add test that opens dialog inside modal view
2018-05-29 18:06:02 +03:00
Alexander Djenkov
0fc1547a19
feat(view): introduce LayoutChanged event on every View component ( #5825 )
...
* feat(view): introduce LayoutChanged event
* test(view): add LayoutChanged event tests
* chore(view-android): attach to onLayoutChange only if listener attached
* feat(view-android): override on/off in order to attach and detach from OnLayoutChangeListener
2018-05-21 17:22:40 +03:00
Manol Donev
2fc1d8a8d4
chore(tsc): enable noUnusedLocals compiler option for tns-core-modules ( #5755 )
2018-05-10 16:12:59 +03:00
Manol Donev
03cfc0cee3
chore(tslint): update tslint rules and fix errors ( #5747 )
...
* chore(tslint): fix tslint config & errors
* chore(tslint): enable double quotes, whitespace, and arrow-return-shorthand rules and fix errors
2018-04-26 18:36:32 +03:00
Alexander Vakrilov
49ea10b81e
fix(layout): IOS Layout not invalidated with custom root ( #5724 )
...
* fix(layout): Buuple up layout trough viewControllers
* test: Layout invalidates correctly with different root view
* chore: tslint
2018-04-23 15:47:27 +03:00
Alexander Djenkov
31ee774a6b
fix-next(ios-modal): fix empty modal screen when using common layout as root ( #5618 )
2018-04-05 09:44:03 +03:00
Manol Donev
81a2cbd0fe
refactor(ios): clean up iOS8 or lower specific checks in codebase ( #5581 )
2018-03-26 13:37:21 +03:00
Alexander Djenkov
0138873ee3
feat(modal): introduce stretched param to showModal method ( #5496 )
...
* fix-next(ios-modal-view): force stretch alignment
* feat(modal): introduce stretched param to showModal method
* test(modal-view): add modal view stretched test
2018-03-07 18:17:52 +02:00
Alexander Djenkov
b8e0beccdd
fix(ios-layouts): switch contentInsetAdjustmentBehavior on ScrollView ( #5411 )
...
* fix(layouts): switch contentInsetAdjustmentBehavior on ScrollView
* chore(ui-tests-app): add test for ScrollView as a root Page element
2018-02-15 09:27:16 +02:00
Alexander Vakrilov
923d48b23a
fix: layoutParent crash with ProxyViewContainer ( #5315 )
2018-01-24 18:27:00 +02:00
Alexander Vakrilov
b492996647
fix(layouts): Set automaticallyAdjustsScrollViewInsets ( #5311 )
2018-01-23 17:53:31 +02:00
Hristo Hristov
016c64fe04
showModal & closeModal can be called on any View
...
fix livesync implementation to be compatible with 3.4 and to replace mainEntry for 4.0 when root is not Frame
some refactoring of page.ios in order to allow showing multiple modal dialogs
2018-01-18 13:34:25 +02:00
Hristo Hristov
3384112ce8
When application start is called we don't set Frame to be styleScope
...
Added requestLayout for TextView
Round desiredSize in nativeMeasure
2018-01-09 13:17:50 +02:00
Hristo Hristov
058a216ac9
Move styleScope from Page to View
...
Fix image-source test for API 27
setupAsRootView now makes the component styleScope
set css, addCss & addCssFile makes view to be styleScopeHost which cannot be overriden later from parent
Android modals now call setupAsRootView
Small fixes on ios layouts
launch event fired in andriod too
Moved some requestLayout calls to ios files where they belongs
2017-12-19 16:35:15 +02:00
Hristo Hristov
63ab46eb2a
Layout improvements
2017-12-15 17:11:51 +02:00
Hristo Hristov
ac04ede97e
Implemented showModal on View
2017-12-15 13:08:15 +02:00
Hristo Hristov
04c1132541
Fix broken merge conflict
2017-12-15 13:06:34 +02:00
Hristo Hristov
edb0eb1721
Bring back ios property of CustomLayoutView
2017-12-15 13:06:34 +02:00
Hristo Hristov
a35e603d85
Fix to always get the same bounds no matter if we are shown modally or not (for iOS).
...
Remove code that moves actionBar when there is incoming call. We now depend on the autolayout to position us correctly.
_addView, _removeView won't request layout for iOS.
LayoutBase: addChild & remvoeChild will request layout.
ContentView: content change will request layout.
2017-12-15 13:06:34 +02:00
Hristo Hristov
f3aecad369
ScrollingContent is not checking innerviews anymore
2017-12-15 13:06:34 +02:00
Hristo Hristov
199d83c902
Generated platforms declarations for iOS 11
...
Fixed broken unit-tests
ios layout now run only for the innermost viewcontoller
ios layout for viewcontrollers now implemented with constraints
Added ios11 safeAreas layout support
onMeasure back for frame and tab-view so that they won't throw exception if measure is called on them
Page parents layout updated after page is layout so that inner layout flags are correct
2017-12-15 13:06:34 +02:00