From 6d51d125812a0ebbac79472361312dd821808c7d Mon Sep 17 00:00:00 2001 From: Niels Thole Date: Wed, 28 Feb 2018 09:09:29 +0100 Subject: [PATCH] Full height and width to ensure that the div fills the whole element. Otherwise, it was possible that percentual heights were not propagated correctly as the saw-div did not have the same height as the resize-aware element. Also fixed the CSS style which refered to the element saw but was probably meant for the div with the id "saw" --- resize-aware.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resize-aware.html b/resize-aware.html index e3cd96a..1d44848 100644 --- a/resize-aware.html +++ b/resize-aware.html @@ -11,7 +11,9 @@ position: relative; } - saw { + #saw { + height: 100%; + width: 100%; display: inline-block; margin: 0px; padding: 0px;