From 084391b440bc91cff68703f1f51a52418721e18a Mon Sep 17 00:00:00 2001 From: Dmitry Nehaychik <4dmitr@gmail.com> Date: Tue, 22 May 2018 14:34:28 +0300 Subject: [PATCH] fix(layout): fix layout height when header is not fixed (#437) --- .../theme/components/layout/_layout.component.theme.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/framework/theme/components/layout/_layout.component.theme.scss b/src/framework/theme/components/layout/_layout.component.theme.scss index 8a782e025d..f65d2e6001 100644 --- a/src/framework/theme/components/layout/_layout.component.theme.scss +++ b/src/framework/theme/components/layout/_layout.component.theme.scss @@ -138,8 +138,13 @@ } } + & ~ .layout-container { + min-height: calc(#{nb-theme(layout-min-height)} - #{nb-theme(header-height)}); + } + &.fixed ~ .layout-container { padding-top: nb-theme(header-height); + min-height: nb-theme(layout-min-height); } &.fixed ~ .layout-container > nb-sidebar > .main-container { @@ -148,7 +153,6 @@ } .layout-container { - min-height: nb-theme(layout-min-height); nb-sidebar.fixed { top: nb-theme(header-height);