【发布时间】:2018-03-15 20:10:07
【问题描述】:
我正在做一个聊天应用程序。当我打开这个聊天应用程序时,我希望页面向下滑动。 当框处于焦点时,页面会向下滑动。但是页面在第一次打开时不会滑落。我能做些什么 ? Chat Page Picture 我的代码;
ionViewDidEnter() {
this.chat();
}
scrollToBottom() {
if (this.content.scrollToBottom) {
this.content.scrollToBottom();
}
}
onFocus() {
this.content.resize();
this.scrollToBottom();
this.keyboard.show();
}
【问题讨论】:
-
@suraj Okey,我添加到答案中。谢谢
标签: angular typescript scroll ionic2 ionic3