X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-core-debug.js;h=d64393b5ab4664df69f4b49218039d6bb42f4c13;hb=7e3002584cb7fc8681da1d57855309b65749866d;hp=08a58be6bea7b4afa5f6839f8029877cfb965998;hpb=dc0deb4ab24ebb1144a9c7c0cea2e5d6bedb54e1;p=roojs1 diff --git a/roojs-core-debug.js b/roojs-core-debug.js index 08a58be6be..d64393b5ab 100644 --- a/roojs-core-debug.js +++ b/roojs-core-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 - *