Skip to content

Commit

Permalink
Fix height issue on webkit (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatoBeltran authored Mar 25, 2021
1 parent 51ba4e4 commit 856cc4f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v8.1.7
### Changed
- Fixed app height on webkit based browsers to take all available space instead of 100vh

## v8.1.7
### Changed
- Updated `$max-size-60` to 46.25rem
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@microsoft/azure-iot-ux-fluent-css",
"description": "Azure IoT common styles library for CSS, Colors and Themes",
"version": "8.1.7",
"version": "8.1.8",
"license": "MIT",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
11 changes: 10 additions & 1 deletion src/_normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@
}

:global {
:root {
// Fix webkit mobile bug with handling 100vh hiding it over the sticky browser footer
height: -webkit-fill-available;
}

body {
height: 100vh;
height: -webkit-fill-available;

margin: 0;
padding: 0;

Expand All @@ -26,7 +34,8 @@
}

#root {
height: 100vh;
height: 100%;
height: -webkit-fill-available;

// Set positioning to relative so that everything flows from shell
position: relative;
Expand Down

0 comments on commit 856cc4f

Please sign in to comment.