From: <asa...@us...> - 2016-02-27 22:12:24
|
Revision: 11927 http://sourceforge.net/p/htmlunit/code/11927 Author: asashour Date: 2016-02-27 22:12:21 +0000 (Sat, 27 Feb 2016) Log Message: ----------- Fixing build Modified Paths: -------------- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java 2016-02-27 21:12:00 UTC (rev 11926) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java 2016-02-27 22:12:21 UTC (rev 11927) @@ -1976,7 +1976,8 @@ if (includeBorder) { width += getBorderHorizontal(); } - else if (isScrollable(true, true) && getElement().getDomNodeOrDie().isDirectlyAttachedToPage()) { + else if (isScrollable(true, true) && !(getElement() instanceof HTMLBodyElement) + && getElement().getDomNodeOrDie().isDirectlyAttachedToPage()) { width -= 17; } if (includePadding) { @@ -2104,7 +2105,8 @@ if (includeBorder) { height += getBorderVertical(); } - else if (isScrollable(false, true) && getElement().getDomNodeOrDie().isDirectlyAttachedToPage()) { + else if (isScrollable(false, true) && !(getElement() instanceof HTMLBodyElement) + && getElement().getDomNodeOrDie().isDirectlyAttachedToPage()) { height -= 17; } if (includePadding) { |