public int getVisibleLines() {
        return getTextAreaElement().getRows();
    }
Gets the number of text lines that are visible.

@return the number of visible lines
stroom-core-client-widget/src/main/java/com/google/gwt/user/client/ui/TextArea.java