Skip to content

Commit 8248d8a

Browse files
author
Vasil Chimev
authored
refactor(e2e/modal-navigation): stretch modal tab view (NativeScript#5548)
Update application with NativeScript#5496.
1 parent 9fddec5 commit 8248d8a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

e2e/modal-navigation/app/home/home-page.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,17 @@ export function onModalPage(args: EventData) {
4242
}
4343

4444
export function onModalTabView(args: EventData) {
45+
const fullscreen = false;
46+
const animated = false;
47+
const stretched = true;
48+
4549
const view = args.object as View;
4650
view.showModal("modal-tab/modal-tab-root",
4751
{ frameless: true },
4852
() => console.log("home-page modal tabview closed"),
49-
false);
53+
fullscreen,
54+
animated,
55+
stretched);
5056
}
5157

5258
export function onNavigate(args: EventData) {
@@ -57,5 +63,5 @@ export function onNavigate(args: EventData) {
5763

5864
export function onRootViewChange() {
5965
let rootView = application.getRootView();
60-
rootView instanceof Frame ? application._resetRootView({moduleName: "tab-root"}) : application._resetRootView({moduleName: "app-root"});
66+
rootView instanceof Frame ? application._resetRootView({ moduleName: "tab-root" }) : application._resetRootView({ moduleName: "app-root" });
6167
}

0 commit comments

Comments
 (0)