From 41f232eadbd49321fc4c043082e83fc90cd77346 Mon Sep 17 00:00:00 2001 From: Michael Cook Date: Mon, 30 Nov 2015 10:49:05 +0000 Subject: [PATCH] Stopped it from breaking with block elements of height: 100% --- boxsizing.htc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boxsizing.htc b/boxsizing.htc index 579e768..a65d660 100644 --- a/boxsizing.htc +++ b/boxsizing.htc @@ -469,7 +469,7 @@ function updateBorderBoxHeight() { } csh = element.currentStyle.minHeight; - if(csh != "none"){ + if(csh != "none" && csh != "100%"){ csh = getPixelHeight(element,csh); if(csh !== "none"){ if(getBoxSizing() == "border-box"){ @@ -482,7 +482,7 @@ function updateBorderBoxHeight() { } csh = element.currentStyle.maxHeight; - if(csh != "none"){ + if(csh != "none" && csh != "100%"){ csh = getPixelHeight(element,csh); if(csh !== "none"){ if(getBoxSizing() == "border-box"){