X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-debug.js;h=8d917e931d58057c683eaf862991008c5684582d;hb=7e3002584cb7fc8681da1d57855309b65749866d;hp=cc9bb6549dcd8c49f7baf430041af054fc0f1e57;hpb=dc0deb4ab24ebb1144a9c7c0cea2e5d6bedb54e1;p=roojs1 diff --git a/roojs-debug.js b/roojs-debug.js index cc9bb6549d..8d917e931d 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -1905,17 +1905,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; @@ -1928,7 +1937,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; @@ -2592,18 +2604,20 @@ Roo.lib.Event = function() { E._tryPreloadAttach(); })(); -/* - * Portions of this file are based on pieces of Yahoo User Interface Library - * Copyright (c) 2007, Yahoo! Inc. All rights reserved. - * YUI licensed under the BSD License: - * http://developer.yahoo.net/yui/license.txt - *