Skip to content

Commit

Permalink
Stick footer to the bottom of the page (DevExpress#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovchinnikov committed Oct 2, 2018
1 parent a99696e commit e5ab383
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/app/layout/layout.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>

<dx-drawer
class="content"
class="drawer"
[closeOnOutsideClick]="shaderEnabled"
[openedStateMode]="menuMode"
[revealMode]="menuRevealMode"
Expand All @@ -23,7 +23,10 @@
</app-navigation-menu>

<dx-scroll-view>
<ng-content></ng-content>
<div class="content">
<ng-content></ng-content>
</div>


<div class="footer">
<ng-content select="app-footer"></ng-content>
Expand Down
16 changes: 15 additions & 1 deletion src/app/layout/layout.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,21 @@
z-index: 1;
}

::ng-deep .dx-scrollable-content {
height: 100%;
}

::ng-deep .dx-scrollview-content {
display: flex;
flex-direction: column;
min-height: 100%;
}

.content {
flex-grow: 1;
}

.drawer {
flex: 1;
min-height: 0;

Expand All @@ -32,7 +46,7 @@
}
}

.screen-large .content ::ng-deep .dx-card {
.screen-large .drawer ::ng-deep .dx-card {
padding: 40px;
}

Expand Down

0 comments on commit e5ab383

Please sign in to comment.