我正在使用带有 angularJS 的 ionic v1,并且我有离子标签:
<ion-tabs class="tabs-icon-top tabs-color-active-positive">
<!-- Home Tab -->
<ion-tab icon-off="ion-home" icon-on="ion-home" href="#/tab/home">
<ion-nav-view name="tab-home"></ion-nav-view>
</ion-tab>
<!-- Calendar Tab -->
<ion-tab icon-off="ion-calendar" icon-on="ion-calendar" href="#/tab/calendar">
<ion-nav-view name="tab-calendar"></ion-nav-view>
</ion-tab>
</ion-tabs>
在日历选项卡中,我有 html 选项,如下所示:
<select ng-options="x for x in $ctrl.startTimes"></select>
When the select menu opens, the view scroll to upward and creates empty space under ion-tabs
.
如何在选择菜单打开之前将视图移动到初始位置?