Skip to content

Instantly share code, notes, and snippets.

@kasper573
Created March 24, 2018 22:19
Show Gist options
  • Save kasper573/95e016e35f196ad83f62f2e4feec867c to your computer and use it in GitHub Desktop.
Save kasper573/95e016e35f196ad83f62f2e4feec867c to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Edge 100% height window resize issue</title>
<style type="text/css">
html, body, #root {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
.content {
background: skyblue;
}
.footer {
background: tomato;
}
.flex {
display: flex;
flex-shrink: 0;
flex-direction: column;
}
.full-height {
height: 100%;
}
</style>
</head>
<body>
<div id="root" class="flex">
<div class="flex" style="flex:1 1 0%;">
<div class="content flex full-height">Content</div>
<div class="footer">Footer</div>
</div>
</div>
</body>
</html>
@nanoaquila
Copy link

Add an height of 0 to your inline style
flex:1 1 0%; height: 0;
this will fix your edge issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment