我已經爲內容設置了一系列帶有離子視圖的選項卡。內容在每個選項卡式路徑中都能正確顯示,但選項卡式內容不會垂直滾動,並且列表會從頁面中移出而無法訪問。標籤不應該滾動?文檔指出滾動應該默認打開離子內容。離子垂直滾動不能在選項卡式內容中工作
INDEX
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title></title>
<!-- Application Styles -->
<link href="css/ionic.app.css" rel="stylesheet">
<!-- Ionic Angular Scripts -->
<script src="lib/ionic/js/ionic.bundle.js"></script>
<script src="lib/ionic/js/angular/angular-resource.js"></script>
<!-- Cordova Scripts -->
<script src="cordova.js"></script>
<!-- Application Scripts -->
<script src="js/app.js"></script>
<script src="js/app-configuration.js"></script>
<script src="js/app-interceptor.js"></script>
<script src="js/app-route.js"></script>
<script src="js/app-route-controller.js"></script>
<script src="js/app-resource.js"></script>
<script src="js/app-service.js"></script>
</head>
<body ng-app="eventApp">
<ion-nav-view></ion-nav-view>
</body>
</html>
儀表板視圖 - /儀表板
<ion-side-menus>
<ion-side-menu-content>
<ion-nav-bar class="bar-light">
<ion-nav-back-button class="button-clear">
<i class="ion-chevron-left"></i> Back
</ion-nav-back-button>
<ion-nav-buttons side="left">
<button class="button button-icon button-clear ion-navicon" menu-toggle="left"></button>
</ion-nav-buttons>
</ion-nav-bar>
<ion-nav-view></ion-nav-view>
</ion-side-menu-content>
<ion-side-menu side="left">
<ion-header-bar class="bar-light"></ion-header-bar>
<ion-content>
<ion-list class="list">
<ion-item href="#" ui-sref="dashboard.index" class="item-icon-left" menu-close>
<i class="icon ion-map"></i> Map
</ion-item>
<ion-item href="#" ui-sref="dashboard.profile.index" class="item-icon-left" menu-close>
<i class="icon ion-android-person"></i> User Profile
</ion-item>
<ion-item href="#" ui-sref="dashboard.event.index" class="item-icon-left" menu-close>
<i class="icon ion-android-calendar"></i> Events
</ion-item>
</ion-list>
</ion-content>
</ion-side-menu>
</ion-side-menus>
TABS內部景觀 - /儀表/事件/列表
<ion-view view-title="" id="pk-event" hide-back-button="true">
<ion-tabs class="tabs-positive">
<ion-tab title="Current" ui-sref="dashboard.event.index">
<ion-nav-view name="current-tab"></ion-nav-view>
</ion-tab>
<ion-tab title="Upcoming" ui-sref="dashboard.event.upcoming">
<ion-nav-view name="upcoming-tab"></ion-nav-view>
</ion-tab>
<ion-tab title="Past" ui-sref="dashboard.event.past">
<ion-nav-view name="past-tab"></ion-nav-view>
</ion-tab>
</ion-tabs>
</ion-view>
TAB子視圖 - /儀表/事件/目錄/目前
<ion-view title="">
<ion-content>
<ion-list show-delete="showDelete"
show-reorder="showReorder"
can-swipe="canSwipe">
<div class="item item-divider">
Current Events
</div>
<div ng-repeat="event in events">
<div>Date: {{event.dates[0] | date}}</div>
<br>
<h2>{{event.name}}</h2>
<p>Event Address: {{event.address}}</p>
<p>{{event.note}}</p>
</ion-item>
</div>
</ion-list>
</ion-content>
</ion-view>
嗨我已更新我的代碼以顯示完整的模板/視圖層次結構。當我的觀點按照這種方式構建時,這仍然是你認爲的問題嗎? – mtpultz
我可能是錯的,但我不認爲你想要他們自己的標籤,你需要把它們放在你想要的每個視圖的內容之外,或者把它們放在你的ion-nav-view之外(這樣它們顯示出來globaly)。從我所知道的情況來看,你一次不能有多個視圖填充ion-nav-view。所以要麼標籤需要在離子瀏覽視圖之外,或者需要存在於每個離子視圖中,但離子內容之外(因此滾動仍然有效) –
因此要麼離子NAV-視圖> 或 離子含量> –