I have created a side menu and ion view with ion content. The login page is working fine and scrolling properly, also it gets through the landing page. First time landing page is scrolling properly. But when i am clicking the side menu and going to someother page, the scrolling to bottom and up is not happening.
我创建了一个带有离子含量的侧面菜单和离子视图。登录页面工作正常,滚动正常,也通过登录页面。首次登陆页面正确滚动。但是当我点击侧面菜单并转到另一个页面时,滚动到底部和向上不会发生。
menu.html
<ion-side-menus>
<ion-side-menu-content>
<ion-nav-bar class="navBar" align-title="left"></ion-nav-bar>
<ion-nav-buttons side="left">
<button class="button button-icon button-stable ion-navicon" style="color: #fff" ng-click="toggleLeft()">
</button>
</ion-nav-buttons>
<ion-nav-view name="menuContent"></ion-nav-view>
</ion-side-menu-content>
<ion-side-menu side="left">
<ion-header-bar class="navBar" align-title="left">
<h1 class="title">Menu List</h1>
</ion-header-bar>
<ion-content class="menuList">
<div class="list" >..
</div>
</ion-content>
</ion-side-menu>
</ion-side-menus>
index.html
<ion-nav-view></ion-nav-view>
landing.html
<ion-view title="some title">
<ion-content>
<div class="parentDiv">
</div>
</ion-content>
</ion-view >
Is there any issue with my code structure or any flaw in ionic?
我的代码结构是否存在任何问题或者离子存在任何缺陷?
1 个解决方案
#1
1
Try including ion-scroll, inside ion-side-menus.
尝试在离子侧菜单中包括离子滚动。
<ion-scroll direction="y">
</ion-scroll>
#1
1
Try including ion-scroll, inside ion-side-menus.
尝试在离子侧菜单中包括离子滚动。
<ion-scroll direction="y">
</ion-scroll>