Dimension () { if (myUseNewRendering) return myView.getPreferredSize(); Dimension size = mySizeContainer.getContentSize(); return new Dimension(size.width, size.height + mySettings.getAdditionalLinesCount() * getLineHeight()); }