【发布时间】:2019-01-25 16:22:17
【问题描述】:
我尝试在我的 nativescript 项目中添加模式,它在 android 上按预期工作,但在 ios 上它占用了屏幕的全部高度和宽度,它应该部分显示。
我创建了一个单独的角度组件来打开它,我在下面的代码中使用。
它在 android 上运行良好,但在 ios 上它以全屏模式打开。
public showModal(fullscreen: boolean, animated = true, stretched = false) {
const options: ModalDialogOptions = {
context: { promptMsg: "This is the prompt message!" },
fullscreen,
animated,
stretched,
viewContainerRef: this.vcRef,
};
this.modal.showModal(ModalContent, options).then((res: string) => {
this.result = res || "empty result";
});
模态应该在 ios 上作为 android 部分打开。 有什么解决方法吗,请帮忙。
【问题讨论】:
标签: android ios angular modal-dialog nativescript