diff options
author | Felipe Heidrich <fheidric> | 2006-03-06 21:40:14 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2006-03-06 21:40:14 +0000 |
commit | 441a8eacb76c33ef76d8bf7862dd65f2e6425912 (patch) | |
tree | 22e4a7356b87b07930b439303aafc4fa5ba8ad4f /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java | |
parent | 6baeee79ba35f58860c1d4438eb21af1ad59d4ec (diff) | |
download | eclipse.platform.swt-441a8eacb76c33ef76d8bf7862dd65f2e6425912.tar.gz eclipse.platform.swt-441a8eacb76c33ef76d8bf7862dd65f2e6425912.tar.xz eclipse.platform.swt-441a8eacb76c33ef76d8bf7862dd65f2e6425912.zip |
support for image height larger then the header height
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java index 2dd2dec650..f4fd9d00ed 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java @@ -133,7 +133,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) { height += spacing; for (int i = 0; i < itemCount; i++) { ExpandItem item = items [i]; - height += ExpandBar.HEADER_HEIGHT; + height += item.getHeaderHeight (); if (item.expanded) height += item.height; height += spacing; width = Math.max (width, item.getPreferredWidth (hTheme, hDC)); @@ -339,13 +339,13 @@ void layoutItems (int index, boolean setScrollbar) { for (int i = 0; i < index; i++) { ExpandItem item = items [i]; if (item.expanded) y += item.height; - y += ExpandBar.HEADER_HEIGHT + spacing; + y += item.getHeaderHeight () + spacing; } for (int i = index; i < itemCount; i++) { ExpandItem item = items [i]; item.setBounds (spacing, y, 0, 0, true, false); if (item.expanded) y += item.height; - y += ExpandBar.HEADER_HEIGHT + spacing; + y += item.getHeaderHeight () + spacing; } } if (setScrollbar) setScrollbar (); |