Skip to content

Commit cbb348f

Browse files
authored
fix(android): edge to edge default behaviour (#11233)
Pages consume the overflow by default, making it easier for containers to overflow once the page allows it .
1 parent 41e7970 commit cbb348f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

packages/core/ui/core/view/index.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ export class ContainerView extends View {
18061806

18071807
constructor() {
18081808
super();
1809-
this.androidOverflowEdge = 'none';
1809+
this.androidOverflowEdge = 'ignore';
18101810
}
18111811
}
18121812

packages/core/ui/page/index.android.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ export * from './page-common';
1313
export class Page extends PageBase {
1414
nativeViewProtected: org.nativescript.widgets.GridLayout;
1515

16+
constructor() {
17+
super();
18+
this.androidOverflowEdge = 'none';
19+
}
20+
1621
public createNativeView() {
1722
const layout = new org.nativescript.widgets.GridLayout(this._context);
1823
layout.addRowsFromJSON(

0 commit comments

Comments
 (0)