Commit Graph

934 Commits

Author SHA1 Message Date
MartoYankov
b8c4ea639f fix broken transforms because of wrong view bounds 2018-09-27 17:07:13 +03:00
Vasil Chimev
d025c0eeb3 fix(flexbox): justify content calculations 2018-09-27 16:15:03 +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
Vasil Chimev
e6ea1c22a6 Merge branch 'ios-safe-area' of github.com:NativeScript/NativeScript into ios-safe-area 2018-09-21 16:43:13 +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
9d9e4d350d add safe area support to flexbox 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
f805bc90ad make webview to inherit from ContainerView 2018-09-20 18:33:59 +03:00
Martin Yankov
6e0ee3f344 remove locationOnScreen usage 2018-09-20 18:33:59 +03:00
Martin Yankov
fea47e838d change the default values for android safe area 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
db7f913072 feat: apply insets to flexbox row layout 2018-09-20 18:33:58 +03:00
Vasil Chimev
c02f062457 feat: apply insets to absolute layout 2018-09-20 18:33:58 +03:00
Vasil Chimev
12a9c5181e feat: apply insets to dock layout 2018-09-20 18:33:58 +03:00
Vasil Chimev
e66a6fa286 feat: apply insets to repeater 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
8f8001eac8 fix ts errors 2018-09-20 18:33:58 +03:00
Martin Yankov
8df5fbd7a8 refactor safe area application code 2018-09-20 18:33:58 +03:00
Vasil Chimev
1858cba4ed fix(scroll-view): wrong locationOnScreen rounding 2018-09-20 18:33:57 +03:00
Vasil Chimev
52f8e67203 fix(scroll-view): apply insets to layoutChild method
Delete `*-nav-page.*` files reproducing the issue.
Update `home-page.xml` with `ScrollView` to reproduce the issue.
2018-09-20 18:33:57 +03:00
Vasil Chimev
d6f29dc6bc refactor: wrap layout 2018-09-20 18:33:57 +03:00
Vasil Chimev
2a9d1acb6f refactor: wrap layout safe area support 2018-09-20 18:33:57 +03:00
Martin Yankov
017534c30d add listview support for safe area 2018-09-20 18:33:57 +03:00
Vasil Chimev
726c5bb913 refactor: apply insets to wrap layout 2018-09-20 18:33:57 +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
Martin Yankov
2d2144f02e fix safe area calculations with flat action bar 2018-09-20 10:51:58 +03:00
Alexander Vakrilov
71107533bb refactor: guard livesync for cases the app is not yet started (#6276) 2018-09-20 09:47:53 +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
Manol Donev
6c9fa16f6e fix(android): parallel navigations should not be triggered (#6275) 2018-09-18 11:25:31 +03:00