diff options
author | Niraj Modi | 2015-09-24 17:54:30 +0000 |
---|---|---|
committer | Niraj Modi | 2015-12-23 07:47:41 +0000 |
commit | c2a23a23aa9d9f9c9edf0968e2c57459282c8b43 (patch) | |
tree | ec83ebd3f3979622ffebf097fc40a7b7c177bdf9 | |
parent | 17d8bdd1953acade30ce57c96b5ef3f78f76ae86 (diff) | |
download | eclipse.platform.swt-c2a23a23aa9d9f9c9edf0968e2c57459282c8b43.tar.gz eclipse.platform.swt-c2a23a23aa9d9f9c9edf0968e2c57459282c8b43.tar.xz eclipse.platform.swt-c2a23a23aa9d9f9c9edf0968e2c57459282c8b43.zip |
Bug 477798 - [Win32][Cocoa]CTabFolder has wrong initial size
Change-Id: I0d17531b4875f65a7dc3889cc9bf05f897cf481c
Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.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/CTabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java index 1aadacc6bd..b3478731c3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java @@ -3771,7 +3771,7 @@ boolean updateTabHeight(boolean force){ gc.dispose(); if (fixedTabHeight == SWT.DEFAULT && controls != null && controls.length > 0) { for (int i = 0; i < controls.length; i++) { - if ((controlAlignments[i] & SWT.WRAP) == 0 && !controls[i].isDisposed() && (controls[i].getVisible() || controls[i] == chevronTb)) { + if ((controlAlignments[i] & SWT.WRAP) == 0 && !controls[i].isDisposed() && controls[i].getVisible()) { int topHeight = controls[i].computeSize(SWT.DEFAULT, SWT.DEFAULT).y; topHeight += renderer.computeTrim(CTabFolderRenderer.PART_HEADER, SWT.NONE, 0,0,0,0).height + 1; tabHeight = Math.max(topHeight, tabHeight); |