MartoYankov
b8c4ea639f
fix broken transforms because of wrong view bounds
2018-09-27 17:07:13 +03:00
Martin Yankov
d5d671ba53
Merge branch 'master' into ios-safe-area
2018-09-26 18:39:42 +03:00
Martin Yankov
f01403a419
fix nested viewcontrollers top insets
2018-09-26 18:38:52 +03:00
Vasil Chimev
5df6921635
fix: move _getCurrentLayoutBounds from CustomLayoutView to View as extended by ListViewBase
2018-09-26 17:39:52 +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
Martin Yankov
815369b708
fix scrollview as root of tabview
2018-09-25 15:47:05 +03:00
Martin Yankov
a6a97ab3f7
fix safe area calculations with flat action bar
2018-09-20 18:34:47 +03:00
Vasil Chimev
806d82288b
refactor: rename iosExpandSafeArea to iosOverflowSafeArea
...
Update type definitions.
2018-09-20 18:34:46 +03:00
Vasil Chimev
f40d6c1a97
refactor: delete isContentScrollable function
...
BREAKING CHANGES:
The `scrollableContent` property is no more - use `iosExpandSafeArea` instead.
2018-09-20 18:33:59 +03:00
Martin Yankov
351d78e80c
fix tabview safe areas
2018-09-20 18:33:59 +03:00
Martin Yankov
2d39a47dd8
fix scrollview
2018-09-20 18:33:59 +03:00
Vasil Chimev
ea4ace61da
refactor: add locationInWindow usage
2018-09-20 18:33:59 +03:00
Martin Yankov
d8c9c19716
remove rounding when conversing to native pixels
2018-09-20 18:33:59 +03:00
Vasil Chimev
c163544aab
chore: fix a tslint error
2018-09-20 18:33:59 +03:00
Vasil Chimev
f2d9b05e01
refactor: View.applySafeAreaInsets(frame)
...
Split to `ios.shrinkToSafeArea()` and `ios.expandBeyondSafeArea()`.
Update trace logs.
2018-09-20 18:33:59 +03:00
Vasil Chimev
bf070f105d
refactor: update safe area traces
2018-09-20 18:33:59 +03:00
Martin Yankov
6e0ee3f344
remove locationOnScreen usage
2018-09-20 18:33:59 +03:00
Martin Yankov
50a6073f33
move frame position conversion methods to ios namespace
2018-09-20 18:33:59 +03:00
Martin Yankov
5b2f8c7248
remove getSafeArea and geFullscreen methods
2018-09-20 18:33:59 +03:00
Martin Yankov
ee004b4580
enable iosExpandSafeArea property on Views too
2018-09-20 18:33:58 +03:00
Vasil Chimev
429ac8712f
feat: add iosExpandSafeArea property
...
Also apply insets on page's children.
2018-09-20 18:33:58 +03:00
Martin Yankov
35ad8ba3b0
apply bottom and right safe area inset to views
2018-09-20 18:33:58 +03:00
Martin Yankov
496ccb4acf
layout viewcontroller in fullscreen if has childviewcontrollers
2018-09-20 18:33:58 +03:00
Martin Yankov
08031cc291
fix iOS 10 fictional safe area layout
2018-09-20 18:33:58 +03:00
Martin Yankov
8df5fbd7a8
refactor safe area application code
2018-09-20 18:33:58 +03:00
Martin Yankov
0f7f2b969b
add safe area support for scroll view
2018-09-20 18:33:57 +03:00
Martin Yankov
cddc0a682a
fix safe area for ios 10 and less
2018-09-20 18:33:57 +03:00
Martin Yankov
f3e89371ec
add right and bottom to insets
2018-09-20 18:32:42 +03:00
Martin Yankov
9b7fb990b3
ensure correct position values after safe area reposition
2018-09-20 18:32:42 +03:00
Martin Yankov
d4ec355466
feat(ios): enable safe area for stack and grid
2018-09-20 18:32:41 +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