diff --git a/dist/ionic.css b/dist/ionic.css index 77571f0660..81f4e10e8b 100644 --- a/dist/ionic.css +++ b/dist/ionic.css @@ -23,19 +23,27 @@ ul { margin: 0; padding: 0; } -main { +.page, .full-section { position: fixed; top: 0; right: 0; bottom: 0; left: 0; - overflow: auto; + z-index: 1; width: 100%; - -webkit-overflow-scrolling: touch; } + height: 100%; + overflow: auto; + -webkit-overflow-scrolling: touch; + background-color: #fff; } + +.content { + position: absolute; + width: 100%; + height: 100%; } /* Hack to force all relatively and absolutely positioned elements still render while scrolling Note: This is a bug for "-webkit-overflow-scrolling: touch" (via ratchet) */ -main > * { +.content > *, .content-padded > * { -webkit-transform: translateZ(0px); transform: translateZ(0px); } @@ -46,12 +54,6 @@ main > * { position: fixed; z-index: 1; } -.full-section { - position: fixed; - z-index: 1; - width: 100%; - height: 100%; } - .rounded { border-radius: 5px; } @@ -1059,6 +1061,7 @@ a.list-item { top: 0; bottom: 0; z-index: 0; + background-color: #fff; overflow-y: scroll; -webkit-overflow-scrolling: touch; } diff --git a/example/angular/index.html b/example/angular/index.html index f145663558..6a11b04f8c 100644 --- a/example/angular/index.html +++ b/example/angular/index.html @@ -11,17 +11,17 @@ - - - -
-