cpHeight += ci.top + ci.bottom;
// Computing final size
final int width = i.left + MathUtils.max ( tpWidth, cpWidth ) + i.right;
final int height = i.top + tpHeight + cpHeight + i.bottom;
final NinePatchIcon shadeIcon = rootUI.getShadeIcon ( root );
final Dimension d = new Dimension ( width, height );
return shadeIcon != null ? SwingUtils.max ( d, shadeIcon.getPreferredSize () ) : d;
}