Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Remove browser vertical scrollbar in edit view. (#3863)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenba committed Dec 1, 2017
1 parent c4818d6 commit 5b4cc6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/css/frame.scss
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,10 @@ body {
.main-container {
z-index: 9990;
position: absolute;
top: $grid-unit * 2;
top: $grid-unit * 5; // match editor-header's height
overflow: auto;
left: 0;
height: 100%;
height: calc(100% - #{$grid-unit * 5}); // subtract the `top` so there's no vertical scrollbar
width: 100%;
text-align: center;

Expand Down Expand Up @@ -414,7 +414,7 @@ body {

.centered {
position: absolute;
top: $grid-unit * 4;
top: $grid-unit;
left: 0;
right: 0;
margin: auto;
Expand Down

0 comments on commit 5b4cc6e

Please sign in to comment.