int hTrim = parent.leftMargin + parent.rightMargin;
int hTrim = parent.leftMargin + parent.rightMargin + parent.getCaretWidth();
	public void calculate(int startLine, int lineCount) {		int endLine = startLine + lineCount;		if (startLine < 0 || endLine > lineWidth.length) {			return;		}		int hTrim = parent.leftMargin + parent.rightMargin;		StyledTextRenderer2 renderer = parent.renderer;		StyledTextContent content = parent.content;		TextLayout layout;		Rectangle rect;		for (int i = startLine; i < endLine; i++) {			if (lineWidth[i] == -1 || lineHeight[i] == -1) {				String line = content.getLine(i);				int lineOffset = content.getOffsetAtLine(i);				layout = renderer.getTextLayout(line, lineOffset);				rect = layout.getBounds();				lineWidth[i] = rect.width + hTrim;				lineHeight[i] = rect.height;				renderer.disposeTextLayout(layout);			}			if (lineWidth[i] > maxWidth) {				maxWidth = lineWidth[i];				maxWidthLineIndex = i;			}		}	}