summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Becker2011-10-12 09:49:02 (EDT)
committerJuergen Becker2011-10-12 09:49:02 (EDT)
commit9ae0890824310dcfb66bd8fa03963e0f2aaa1ba0 (patch)
treebcdb7c7ace65eeec24591bc01c23de977048a54b
parenta04101b41b15da66661bf934a381c49b151eabf9 (diff)
downloadorg.eclipse.riena-9ae0890824310dcfb66bd8fa03963e0f2aaa1ba0.zip
org.eclipse.riena-9ae0890824310dcfb66bd8fa03963e0f2aaa1ba0.tar.gz
org.eclipse.riena-9ae0890824310dcfb66bd8fa03963e0f2aaa1ba0.tar.bz2
Fixed wrong application tab height
-rw-r--r--org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/lnf/renderer/SubApplicationSwitcherRenderer.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/lnf/renderer/SubApplicationSwitcherRenderer.java b/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/lnf/renderer/SubApplicationSwitcherRenderer.java
index 38a55d0..c21e047 100644
--- a/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/lnf/renderer/SubApplicationSwitcherRenderer.java
+++ b/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/lnf/renderer/SubApplicationSwitcherRenderer.java
@@ -89,10 +89,12 @@ public class SubApplicationSwitcherRenderer extends AbstractLnfRenderer {
for (final SubApplicationItem item : getVisibleItems()) {
initItemRenderer(tabRenderer, item);
final Point size = tabRenderer.computeSize(gc, null);
- y = getBounds().height - size.y;
- tabRenderer.setBounds(x, y, size.x, size.y);
if (!item.isActivated()) {
+ y = getBounds().height - size.y;
+ tabRenderer.setBounds(x, y, size.x, size.y);
tabRenderer.paint(gc, control);
+ // reset bounds, paint may have changed them
+ tabRenderer.setBounds(x, y, size.x, size.y);
item.setBounds(tabRenderer.getBounds());
}
x += size.x;
@@ -107,6 +109,8 @@ public class SubApplicationSwitcherRenderer extends AbstractLnfRenderer {
y = getBounds().height - size.y;
tabRenderer.setBounds(x, y, size.x, size.y);
tabRenderer.paint(gc, control);
+ // reset bounds, paint may have changed them
+ tabRenderer.setBounds(x, y, size.x, size.y);
item.setBounds(tabRenderer.getBounds());
}
x += size.x;