From 8248d8a8b93527cd81d3e0d3bc80eebecce6f1df Mon Sep 17 00:00:00 2001 From: Vasil Chimev Date: Fri, 16 Mar 2018 20:33:23 +0200 Subject: [PATCH] refactor(e2e/modal-navigation): stretch modal tab view (#5548) Update application with https://github.com/NativeScript/NativeScript/pull/5496. --- e2e/modal-navigation/app/home/home-page.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/e2e/modal-navigation/app/home/home-page.ts b/e2e/modal-navigation/app/home/home-page.ts index 8b6887127..684ec48bd 100644 --- a/e2e/modal-navigation/app/home/home-page.ts +++ b/e2e/modal-navigation/app/home/home-page.ts @@ -42,11 +42,17 @@ export function onModalPage(args: EventData) { } export function onModalTabView(args: EventData) { + const fullscreen = false; + const animated = false; + const stretched = true; + const view = args.object as View; view.showModal("modal-tab/modal-tab-root", { frameless: true }, () => console.log("home-page modal tabview closed"), - false); + fullscreen, + animated, + stretched); } export function onNavigate(args: EventData) { @@ -57,5 +63,5 @@ export function onNavigate(args: EventData) { export function onRootViewChange() { let rootView = application.getRootView(); - rootView instanceof Frame ? application._resetRootView({moduleName: "tab-root"}) : application._resetRootView({moduleName: "app-root"}); + rootView instanceof Frame ? application._resetRootView({ moduleName: "tab-root" }) : application._resetRootView({ moduleName: "app-root" }); }