From 470f40d7db01b68856edf47ac7a5befd50b50340 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 4 Mar 2021 14:37:36 -0500 Subject: [PATCH] CSS: Use `auto` for iframe body height This change makes no visual difference right now, but will matter (for reasons I don't understand) once we change `ace.js` to build the iframes by constructing elements in JavaScript (vs. writing HTML). --- src/static/css/iframe_editor.css | 1 - src/static/css/pad/layout.css | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/static/css/iframe_editor.css b/src/static/css/iframe_editor.css index d106880b6..156eaff6a 100644 --- a/src/static/css/iframe_editor.css +++ b/src/static/css/iframe_editor.css @@ -5,7 +5,6 @@ @import url('./lists_and_indents.css'); html.outer-editor, html.inner-editor { - height: auto !important; background-color: transparent !important; } #outerdocbody { diff --git a/src/static/css/pad/layout.css b/src/static/css/pad/layout.css index e0bd04b74..df3408319 100644 --- a/src/static/css/pad/layout.css +++ b/src/static/css/pad/layout.css @@ -1,11 +1,12 @@ html, body { width: 100%; - height: 100%; + height: auto; margin: 0; padding: 0; } html.pad, html.pad body { overflow: hidden; + height: 100%; } body { display: flex;