Returns the maximum available height inside the popup.<p>

@param fixedContentHeight fixed content height to deduct from the available height

@return the maximum available height
557409
public int getAvailableHeight(int fixedContentHeight) {

        if (m_buttonPanel.isVisible()) {
            fixedContentHeight += m_buttonPanel.getOffsetHeight();
        }
        return Window.getClientHeight() - 150 - fixedContentHeight;
    }
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";
        }
    }
1077322
public int getHeight ()
    {
        // Return the maximal height of our component mirages.
        int height = 0;
        for (Mirage m : _mirages) {
            height = Math.max(height, m.getHeight());
        }

        return height;
    }
1147835
public static int getScreenHeight(Context context) {
        DisplayMetrics metrics = context.getResources().getDisplayMetrics();
        return metrics.heightPixels;
    }
955982
protected void updateContentSize() {

        // The scrolling should be done by the CmsScrollPanel and not by the text area,
        // so we try to make the text area itself as big as its content here.

        int offsetHeight = m_textArea.getOffsetHeight();
        int origRows = m_textArea.getVisibleLines();
        // sanity check: don't do anything, if the measured height doesn't make any sense, e.g. if element is not attached
        if (offsetHeight > 5) {
            int scrollPosition = m_textAreaContainer.getVerticalScrollPosition();
            Element textareaElem = m_textArea.getElement();
            int rows = Math.max(0, m_defaultRows - 1); // we add 1 to it later, and the sum should be at least 1 and at least the default row number
            int scrollHeight;
            int prevOffsetHeight = -1;
            do {
                rows += 1;
                m_textArea.setVisibleLines(rows);
                scrollHeight = textareaElem.getScrollHeight();
                offsetHeight = textareaElem.getOffsetHeight();
                if (offsetHeight <= prevOffsetHeight) {
                    // Increasing the number of rows should normally increase the offset height.
                    // If it doesn't, e.g. because of CSS rules limiting the text area height, there is no point in continuing with the loop
                    break;
                }
                prevOffsetHeight = offsetHeight;
            } while (offsetHeight < scrollHeight);
            m_textAreaContainer.setVerticalScrollPosition(scrollPosition);
            if (origRows != rows) {
                m_textAreaContainer.onResizeDescendant();
            }
        }
    }
1042680
function() {
            var scrollHeight = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollHeight : documentElement.scrollHeight,
                h = Math.max(scrollHeight, Y.Dom.getViewportHeight());

            return h;
        }
938574
@Override
	public int getMaxLength() {
		int max = -1;
		for (Constraint c : constraints) {
			int cM = c.getMaxLength();
			if (max < cM) {
				max = cM;
			}
		}
		return max;
	}
509327
function() {
                return window.innerHeight || document.documentElement[LEXICON.cH] || document.body[LEXICON.cH];
            }
920060
function contentHeight( scrollable )
	{
		var overflowY = scrollable.getStyle( 'overflow-y' );

		var doc = scrollable.getDocument();
		// Create a temporary marker element.
		var marker = CKEDITOR.dom.element.createFromHtml( '<span style="margin:0;padding:0;border:0;clear:both;width:1px;height:1px;display:block;">' + ( CKEDITOR.env.webkit ? '&nbsp;' : '' ) + '</span>', doc );
		doc[ CKEDITOR.env.ie? 'getBody' : 'getDocumentElement']().append( marker );

		var height = marker.getDocumentPosition( doc ).y + marker.$.offsetHeight;
		marker.remove();
		scrollable.setStyle( 'overflow-y', overflowY );
		return height;
	}
448120
public static int getContentLengthValue(H2HeaderField header) {
        if ("content-length".equalsIgnoreCase(header.getName())) {
            return Integer.parseInt(header.getValue());
        }
        return -1;
    }
1173931
def preferred_height(self, cli, width, max_available_height):
        
        return self.content.preferred_height(cli, width, max_available_height)
1371571
private void obtainMaxHeight(@StyleRes final int themeResourceId) {
        TypedArray typedArray = getContext().getTheme()
                .obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogMaxHeight});
        int defaultValue;

        try {
            defaultValue =
                    getContext().getResources().getDimensionPixelSize(R.dimen.dialog_max_height);
        } catch (Resources.NotFoundException | UnsupportedOperationException e) {
            defaultValue = -1;
        }

        try {
            setMaxHeight(typedArray.getDimensionPixelSize(0, defaultValue));
        } catch (Resources.NotFoundException | UnsupportedOperationException e) {
            setMaxHeight(-1);
        }
    }
580181
public final void setMaxHeight(final int maxHeight) {
        if (maxHeight != -1) {
            Condition.INSTANCE.ensureAtLeast(maxHeight, 1, "The maximum height must be at least 1");
        }

        this.maxHeight = maxHeight;
        requestLayout();
    }
895360
public int getContentLength() {
        try {
            getInputStream();
        } catch (Exception e) {
            return -1;
        }
        int l = contentLength;
        if (l < 0) {
            try {
                l = Integer.parseInt(properties.findValue("content-length"));
                setContentLength(l);
            } catch(Exception e) {
            }
        }
        return l;
    }
670928
public void setWindowMinFullHeight(int minHeight) {

        Window window = CmsVaadinUtils.getWindow(this);
        if (window == null) {
            return;
        }
        window.setHeight("90%");
        setHeight("100%");
        setContentMinHeight(minHeight);
        window.center();
    }
14434
public float calculateHeights() {
		maxHeight = 0;
		for (int k = 0; k < cells.length; ++k) {
			PdfPCell cell = cells[k];
			float height = 0;
			if (cell == null) {
				continue;
			}
			else {
				height = cell.getMaxHeight();
				if ((height > maxHeight) && (cell.getRowspan() == 1))
					maxHeight = height;
			}
		}
		calculated = true;
		return maxHeight;
	}
209819
@Override
	public int getHeight() {
		int height = super.getHeight();
		if (height <= 0) {
			ImageView imageView = (ImageView) viewRef.get();
			if (imageView != null) {
				height = getImageViewFieldValue(imageView, "mMaxHeight"); // Check maxHeight parameter
			}
		}
		return height;
	}