私が取り組んでいる簡単なto-doリストのWebアプリに問題があります。私は使用していますapple-mobile-web-app-capableアングルブーストストラップモーダルスクロールの問題
<meta name="apple-mobile-web-app-capable" content="yes">
これは、iPhoneのスタンドアロンの起動のことを行うことができます。
私が見ている問題は、ホーム画面からアプリを起動し、画面の下部を超えてリストをスクロールして項目を追加しようとすると、表示されているようにモーダルが崩れる下記
これは、固定ヘッダDIVとモーダル自体の上にリストの一番上にあるアイテムを示しています。
index.htmlには、次のようになります。
<!DOCTYPE html>
<html ng-app="app" manifest="app.appcache">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="js/vendor.js"></script>
<script src="js/app.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/undo.css">
<link rel="apple-touch-icon" sizes="76x76" href="apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="120x120" href="apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="152x152" href="apple-touch-icon-152x152.png">
<title>All your lists</title>
</head>
<body>
<div class="container" ng-view></div>
</body>
</html>
ビューは次のようになります。
<div class="header">
<div class="row">
<div class="col-xs-3" style="text-align: left;">
<button type="button" class="btn btn-sm btn-primary btn-top" ng-click="home()">
<span class="glyphicon glyphicon-home"></span>
</button>
</div>
<div class="col-xs-6" style="text-align: center; line-height: 40px; color: #eee">
<h4>{{list.name}}</h4>
</div>
<div class="col-xs-3" style="text-align: right">
<div class="btn-group" role="group">
<button type="button" class="btn btn-sm btn-primary btn-top" ng-click="open()">
<span class="glyphicon glyphicon-plus"></span>
</button>
</div>
</div>
</div>
</div>
<ul class="list-group">
<li class="list-group-item app-item" ng-repeat="item in items | filter: { checked: 'false' }">
<list-item item="item" toggle="toggleItemCheck" delete="deleteItem"></list-item>
</li>
<li class="list-group-item got-item" ng-repeat="item in items | filter: { checked: 'true' }">
<list-item item="item" toggle="toggleItemCheck" delete="deleteItem"></list-item>
</li>
</ul>
ヘッダーのdivのCSSは次のとおりです。
.header {
position: fixed;
top: 0;
left: 0;
z-index: 999;
width: 100%;
height: 40px;
background-color: #444;
padding-left: 5px;
padding-right: 5px;
}
私はないですデスクトップ上(モバイルビュー)と私のiPhone上のブラウザでWebアプリケーションを見ると問題が発生する - それはthモーダルが下がるとトップになります。
apple-mobile-web-app対応モードで気づいたもう1つのことは、リストの最上部に表示されている間にモーダルが表示された場合、スクロールしてモーダルフェードオーバーレイが終了する場所を表示して、いくつかのリスト項目。