Index: tools/turbolizer/view.js |
diff --git a/tools/turbolizer/view.js b/tools/turbolizer/view.js |
index 2c90c6da5bb5b8c5264bcb8deef7c8b40406abbe..ebb0481950b82b23b341b612c5283c7062a10335 100644 |
--- a/tools/turbolizer/view.js |
+++ b/tools/turbolizer/view.js |
@@ -26,7 +26,11 @@ class View { |
resizeToParent() { |
var view = this; |
var documentElement = document.documentElement; |
- var y = this.parentNode.clientHeight || documentElement.clientHeight; |
+ var y; |
+ if (this.parentNode.clientHeight) |
+ y = Math.max(this.parentNode.clientHeight, documentElement.clientHeight); |
+ else |
+ y = documentElement.clientHeight; |
this.parentNode.style.height = y + 'px'; |
} |