Document height
@method docHeight
@return {Number} The current height of the document.
606
function(node) {
        var h = Y_DOM._getDocSize(node).height;
        return Math.max(h, Y_DOM._getWinSize(node).height);
    }
505460
function () {
            var docEl = document.documentElement;
            return Math.max( docEl.scrollWidth, document.body.scrollWidth, docEl.clientWidth );
        }
1356480
public int calcComponentPageHeight()
    {
        remainingComponentHeight = remainingComponentHeight + this.checkComponentHeight();
        if (remainingComponentHeight <= remainingPageHeight)
            return remainingComponentHeight;
        if (currentComponent == null)
            return 0;   // Never
        if (!(currentComponent instanceof Container))
            return 0;   // Never
        if (currentComponent instanceof JTable)
        {
            int rowHeight = ((JTable)currentComponent).getRowHeight();
            int currentComponentPageBreak = componentStartYLocation + remainingPageHeight;
            int currentComponentPageRow = (int)(currentComponentPageBreak / rowHeight);
            return remainingPageHeight - (currentComponentPageBreak - currentComponentPageRow * rowHeight);
        }
        
        int lastComponentPageHeight = 0;
        int y = 0;
        int maxLowerBreak = (int)(pageHeight * MAX_LOWER_BREAK);
        Component component = null;
        for (y = remainingPageHeight; y > remainingPageHeight - maxLowerBreak; y--)
        {
            int x = 0;
            for (x = 0; x < currentComponent.getWidth(); x++)
            {
                component = ((Container)currentComponent).getComponentAt(x, componentStartYLocation + y);
                if (component != null)
                    if (component != currentComponent)
                        if (component.getY() + component.getHeight() - 1 != y)  // Don't count last line
                            break;  // This line contains a component, don't break here (continue looking)
            }
            if (x == currentComponent.getWidth())
                break;  // White space thru this whole line, use this as a break
            if (component != null)
                lastComponentPageHeight = Math.max(lastComponentPageHeight, component.getY() - 1);
        }
        if (y == remainingPageHeight - maxLowerBreak)
        {   // Did not find a break, try another way
            if ((lastComponentPageHeight == 0) || (lastComponentPageHeight < pageHeight - maxLowerBreak))
                y = pageHeight;    // No break found, break at the end of the page (in the middle of a component)
            else
                y = lastComponentPageHeight;  // No break found, use the start of the lowest component
        }
        
        return y;
    }
493080
function(node)
	{
		var ds = mxUtils.getDocumentSize();
		var left = parseInt(node.offsetLeft);
		var width = parseInt(node.offsetWidth);
			
		var offset = mxUtils.getDocumentScrollOrigin(node.ownerDocument);
		var sl = offset.x;
		var st = offset.y;

		var b = document.body;
		var d = document.documentElement;
		var right = (sl) + ds.width;
		
		if (left + width > right)
		{
			node.style.left = Math.max(sl, right - width) + 'px';
		}
		
		var top = parseInt(node.offsetTop);
		var height = parseInt(node.offsetHeight);
		
		var bottom = st + ds.height;
		
		if (top + height > bottom)
		{
			node.style.top = Math.max(st, bottom - height) + 'px';
		}
	}
1032850
function documentWidth () {
  return Math.max(
    document.documentElement.clientWidth || 0,
    document.body.scrollWidth || 0,
    document.documentElement.scrollWidth || 0,
    document.body.offsetWidth || 0,
    document.documentElement.offsetWidth || 0)
}
653753
function() {
        var screen = this._ui.screen,
            popupHeight = this._ui.container.outerHeight( true ),
            screenHeight = screen.removeAttr( "style" ).height(),

            // Subtracting 1 here is necessary for an obscure Andrdoid 4.0 bug where
            // the browser hangs if the screen covers the entire document :/
            documentHeight = this.document.height() - 1;

        if ( screenHeight < documentHeight ) {
            screen.height( documentHeight );
        } else if ( popupHeight > screenHeight ) {
            screen.height( popupHeight );
        }
    }
629567
function() {
  var doc = document.documentElement;
  return {
    x: (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0),
    y: (window.pageYOffset || doc.scrollTop)  - (doc.clientTop || 0)
  };
}
271476
function() {

	var region = {
		width: this.get('offsetWidth'),
		height: this.get('offsetHeight')
	},

	box = this._node.getBoundingClientRect(),

	doc = document,
	docElem = doc.documentElement,
	body = doc.body,
	win = window,

	clientTop  = docElem.clientTop  || body.clientTop  || 0,
	clientLeft = docElem.clientLeft || body.clientLeft || 0,
	scrollTop  = win.pageYOffset || docElem.scrollTop  || body.scrollTop,
	scrollLeft = win.pageXOffset || docElem.scrollLeft || body.scrollLeft;

	region.top  = box.top  + scrollTop  - clientTop,
	region.left = box.left + scrollLeft - clientLeft;

	region.bottom = region.top + region.height;
	region.right = region.left + region.width;

	return region;
}
720316
function () {
            var state = this.state;
            return (state.viewportDimensions.clientHeight < state.totalHeight) ||
                   (state.viewportDimensions.clientWidth < state.totalWidth);
        }
278766
public int getHeight()
    {
        if (getAttributes().isDefined(Attribute.HEIGHT))
        {
            final int high = (int) (getAttributes().getHeight() + 0.5);

            if (high > 0)
            {
                return high;
            }
        }
        if (null != m_video)
        {
            return m_video.getVideoHeight();
        }
        return 0;
    }
507811
function () {
        var self = this, elm = self.getEl(), openElm = self.getEl('open'), rect = self.layoutRect();
        var width, lineHeight, innerPadding = 0, inputElm = elm.firstChild;

        if (self.statusLevel() && self.statusLevel() !== 'none') {
          innerPadding = (
            parseInt(DomUtils.getRuntimeStyle(inputElm, 'padding-right'), 10) -
            parseInt(DomUtils.getRuntimeStyle(inputElm, 'padding-left'), 10)
          );
        }

        if (openElm) {
          width = rect.w - DomUtils.getSize(openElm).width - 10;
        } else {
          width = rect.w - 10;
        }

        // Detect old IE 7+8 add lineHeight to align caret vertically in the middle
        var doc = document;
        if (doc.all && (!doc.documentMode || doc.documentMode <= 8)) {
          lineHeight = (self.layoutRect().h - 2) + 'px';
        }

        $(inputElm).css({
          width: width - innerPadding,
          lineHeight: lineHeight
        });

        self._super();

        return self;
      }
724191
public int getHeight() {
        try {
            return ((RemoteWebElement) getElement()).getSize().height;
        } catch (NumberFormatException e) {
            throw new WebElementException("Attribute " + HEIGHT + " not found for Image " + getLocator(), e);
        }
    }
876289
public function getFootnotesHeight(): float
    {
        $h = 0;
        foreach ($this->printedfootnotes as $element) {
            $h += $element->getHeight($this);
        }

        return $h;
    }
372631
protected int getPopupHeight() {

        if (m_popup.isShowing()) {
            return m_popup.getOffsetHeight();
        } else {
            Element el = CmsDomUtil.clone(m_popup.getElement());
            RootPanel.getBodyElement().appendChild(el);
            el.getStyle().setProperty("position", "absolute");
            int height = el.getOffsetHeight();
            el.removeFromParent();
            return height;
        }
    }
1195553
function scrollTop () {
  if (window.pageYOffset) return window.pageYOffset
  return document.documentElement.clientHeight
    ? document.documentElement.scrollTop
    : document.body.scrollTop
}
1223290
function getTotalHeight(acediff, editor) {
  const ed = (editor === C.EDITOR_LEFT) ? acediff.editors.left : acediff.editors.right;
  return ed.ace.getSession().getLength() * acediff.lineHeight;
}
711332
public String getResultListHeight() {

        if ((getChangedResources() != null) && (getChangedResources().size() > 0)) {
            int height = getChangedResources().size() * 14;
            if (height > 300) {
                height = 300;
            }
            return "" + height;
        } else {
            return "14";
        }
    }