From 9a3238078ca99bc1f46c845aa7aa28524f997398 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 3 Aug 2021 17:45:43 +0800 Subject: [PATCH] Changed Roo/lib/Dom.js --- Roo/lib/Dom.js | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Roo/lib/Dom.js b/Roo/lib/Dom.js index 8a5465cb73..ca20f9ac9a 100644 --- a/Roo/lib/Dom.js +++ b/Roo/lib/Dom.js @@ -25,17 +25,26 @@ Roo.lib.Dom = { getViewHeight : function(full) { return full ? this.getDocumentHeight() : this.getViewportHeight(); }, - + /** + * Get the Full Document height + * @return {Number} The height + */ getDocumentHeight: function() { var scrollHeight = (document.compatMode != "CSS1Compat") ? document.body.scrollHeight : document.documentElement.scrollHeight; return Math.max(scrollHeight, this.getViewportHeight()); }, - + /** + * Get the Full Document width + * @return {Number} The width + */ getDocumentWidth: function() { var scrollWidth = (document.compatMode != "CSS1Compat") ? document.body.scrollWidth : document.documentElement.scrollWidth; return Math.max(scrollWidth, this.getViewportWidth()); }, - + /** + * Get the Window Viewport height + * @return {Number} The height + */ getViewportHeight: function() { var height = self.innerHeight; var mode = document.compatMode; @@ -48,7 +57,10 @@ Roo.lib.Dom = { return height; }, - + /** + * Get the Window Viewport width + * @return {Number} The width + */ getViewportWidth: function() { var width = self.innerWidth; var mode = document.compatMode; -- 2.39.2