/** * @param info * @param tableHeight */ public void calculateHeight(TableInfo info, int tableHeight) { ICSSStyle style = this.getFigure().getCSSStyle(); if (style == null) { this._rowHeight = -1; } else { Object height = style.getStyleProperty(ICSSPropertyID.ATTR_HEIGHT); Length recommendedHeight = (height instanceof Length) ? (Length) height : null; int rh = 0; if (recommendedHeight == null || recommendedHeight.getValue() <= 0) { rh = 0; } else { if (recommendedHeight.isPercentage()) { // not supported. } else { rh = recommendedHeight.getValue(); } if (rh > 0 && !style.isSizeIncludeBorderPadding()) { rh += style.getBorderInsets().getHeight() + style.getPaddingInsets().getHeight(); } } this._rowHeight = rh; } }