refactor(e2e/modal-navigation): stretch modal tab view (#5548)

Update application with https://github.com/NativeScript/NativeScript/pull/5496.
This commit is contained in:
Vasil Chimev
2018-03-16 20:33:23 +02:00
committed by GitHub
parent 9fddec517a
commit 8248d8a8b9

View File

@@ -42,11 +42,17 @@ export function onModalPage(args: EventData) {
} }
export function onModalTabView(args: EventData) { export function onModalTabView(args: EventData) {
const fullscreen = false;
const animated = false;
const stretched = true;
const view = args.object as View; const view = args.object as View;
view.showModal("modal-tab/modal-tab-root", view.showModal("modal-tab/modal-tab-root",
{ frameless: true }, { frameless: true },
() => console.log("home-page modal tabview closed"), () => console.log("home-page modal tabview closed"),
false); fullscreen,
animated,
stretched);
} }
export function onNavigate(args: EventData) { export function onNavigate(args: EventData) {
@@ -57,5 +63,5 @@ export function onNavigate(args: EventData) {
export function onRootViewChange() { export function onRootViewChange() {
let rootView = application.getRootView(); 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" });
} }