mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Fix heigt calc in calc issue for ie11 (#66010)
This commit is contained in:
parent
96bc663862
commit
2ad2bfa906
3 changed files with 13 additions and 4 deletions
|
@ -1,8 +1,11 @@
|
|||
// TODO: Move all of the styles here (should be modularised by, e.g., CSS-in-JS or CSS modules).
|
||||
@import '@elastic/eui/src/components/header/variables';
|
||||
|
||||
// This value is calculated to static value using SCSS because calc in calc has issues in IE11
|
||||
$headerHeightOffset: $euiHeaderHeightCompensation * 2;
|
||||
|
||||
#consoleRoot {
|
||||
height: calc(100vh - calc(#{$euiHeaderChildSize} * 2));
|
||||
height: calc(100vh - #{$headerHeightOffset});
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
// Make sure the editor actions don't create scrollbars on this container
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* This is a very brittle way of preventing the editor and other content from disappearing
|
||||
* behind the bottom bar.
|
||||
*/
|
||||
$bottomBarHeight: calc(#{$euiSize} * 3);
|
||||
$bottomBarHeight: $euiSize * 3;
|
||||
|
||||
.painlessLabBottomBarPlaceholder {
|
||||
height: $bottomBarHeight;
|
||||
|
@ -40,8 +40,11 @@ $bottomBarHeight: calc(#{$euiSize} * 3);
|
|||
line-height: 0;
|
||||
}
|
||||
|
||||
// This value is calculated to static value using SCSS because calc in calc has issues in IE11
|
||||
$headerHeightOffset: $euiHeaderHeightCompensation * 2;
|
||||
|
||||
.painlessLabMainContainer {
|
||||
height: calc(100vh - calc(#{$euiHeaderChildSize} * 2) - #{$bottomBarHeight});
|
||||
height: calc(100vh - #{$headerHeightOffset} - #{$bottomBarHeight});
|
||||
}
|
||||
|
||||
.painlessLabPanelsContainer {
|
||||
|
|
|
@ -47,8 +47,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
// This value is calculated to static value using SCSS because calc in calc has issues in IE11
|
||||
$headerHeightOffset: $euiHeaderHeightCompensation * 2;
|
||||
|
||||
.appRoot {
|
||||
height: calc(100vh - calc(#{$euiHeaderChildSize} * 2));
|
||||
height: calc(100vh - #{$headerHeightOffset});
|
||||
overflow: hidden;
|
||||
flex-shrink: 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue