diff options
author | Felipe Heidrich <fheidric> | 2009-03-04 19:38:47 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2009-03-04 19:38:47 +0000 |
commit | d2b5cb5f2ac45e4f2b50e2e2d70f759c37edaae6 (patch) | |
tree | e2dda2c9abf0f79796eed8eb3284a25cfcea35ae /bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java | |
parent | 79231d5f7cba50c738ab5ad014468f3401bd985f (diff) | |
download | eclipse.platform.swt-d2b5cb5f2ac45e4f2b50e2e2d70f759c37edaae6.tar.gz eclipse.platform.swt-d2b5cb5f2ac45e4f2b50e2e2d70f759c37edaae6.tar.xz eclipse.platform.swt-d2b5cb5f2ac45e4f2b50e2e2d70f759c37edaae6.zip |
Bug 56342 similar to 'comment 12, problem D' but for the v scroll
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java index cda81fd254..3492d67d8c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java @@ -469,7 +469,7 @@ FontData[] getFontData(int style) { int getHeight () { int defaultLineHeight = getLineHeight(); if (styledText.isFixedLineHeight()) { - return lineCount * defaultLineHeight; + return lineCount * defaultLineHeight + styledText.topMargin + styledText.bottomMargin; } int totalHeight = 0; int width = styledText.getWrapWidth(); |