Skip to content

Commit

Permalink
fix(content): scrol-inner takes all height
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed May 11, 2018
1 parent 875b9d0 commit 3da0c98
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/src/components/content/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ ion-content {

margin: 0 !important; // scss-lint:disable all
padding: 0 !important; // scss-lint:disable all

> .scroll-inner {
min-height: 100%;
}
}
2 changes: 1 addition & 1 deletion core/src/components/content/test/basic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</ion-header>

<div style="display: flex; flex: 1">
<ion-content padding style="text-align: center; flex: 2" id="content">
<ion-content scroll-enabled="false" padding style="text-align: center; flex: 2" id="content">
<f></f>
<ion-button onclick="toggleFullscreen()">Toggle content.fullscreen</ion-button>
<p>
Expand Down
4 changes: 4 additions & 0 deletions core/src/components/scroll/scroll.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ ion-scroll {
&.overscroll::after {
top: -1px;
}

> .scroll-inner {
min-height: 100%;
}
}

0 comments on commit 3da0c98

Please sign in to comment.