Don't let layout's main content shrink when scrolling is disabled

This commit is contained in:
Vesa Luusua 2017-12-11 14:49:37 +02:00
parent 9d32898741
commit 2f779bafcf
2 changed files with 3 additions and 1 deletions

View file

@ -10,6 +10,7 @@
.container {
/* parent aka root is flexbox, this container takes all available space */
flex-grow: 1;
flex-shrink: 0;
/* This container uses flexbox layout */
display: flex;

View file

@ -7,8 +7,9 @@
}
.layoutWrapperMain {
/* Use all available space parent element (aka root) can give */
/* Use all available space parent element (aka root) can give and don't shrink content */
flex-grow: 1;
flex-shrink: 0;
/* Expand to the full remaining width of the viewport */
display: flex;