aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSnjezana Peco2014-04-18 15:13:59 (EDT)
committerArun Thondapu2014-04-27 10:29:52 (EDT)
commit0757bcaef9d164ab26c143786c6ed075b2af44ce (patch)
treed32b8421e6470df291eb0635e42f9c2197e631f2
parenta8f2f3ce06e6b080f57995fbe883c8c15e3b7c54 (diff)
downloadeclipse.platform.swt-0757bcaef9d164ab26c143786c6ed075b2af44ce.zip
eclipse.platform.swt-0757bcaef9d164ab26c143786c6ed075b2af44ce.tar.gz
eclipse.platform.swt-0757bcaef9d164ab26c143786c6ed075b2af44ce.tar.bz2
Tab content isn't visible in GTK3refs/changes/91/25291/6
Change-Id: I7c32b7e9431fa219649a89e18a37b615ed0444af Signed-off-by: Snjezana Peco <snjeza.peco@gmail.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java7
1 files changed, 5 insertions, 2 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 fdf3f10..909eefe 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
@@ -3749,8 +3749,11 @@ void runUpdate() {
int flags = updateFlags;
updateFlags = 0;
Rectangle rectBefore = getClientArea();
- updateTabHeight(false);
- updateItems(selectedIndex);
+ boolean updated = updateTabHeight(false);
+ updated |= updateItems(selectedIndex);
+ if (updated && getParent() != null) {
+ getParent().layout(true, true);
+ }
if ((flags & REDRAW) != 0) {
redraw();
} else if ((flags & REDRAW_TABS) != 0) {