Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 12920 Details for
Bug 60768
CBanner at top does vertical sizing based on left components
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Fix for CBanner
patch_60768_SWT.txt (text/plain), 2.23 KB, created by
Hanna Farah
on 2004-06-30 13:50:11 EDT
(
hide
)
Description:
Fix for CBanner
Filename:
MIME Type:
Creator:
Hanna Farah
Created:
2004-06-30 13:50:11 EDT
Size:
2.23 KB
patch
obsolete
>Index: Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java,v >retrieving revision 1.49 >diff -u -r1.49 CBanner.java >--- Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java 18 Jun 2004 16:46:19 -0000 1.49 >+++ Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java 30 Jun 2004 17:43:52 -0000 >@@ -65,7 +65,8 @@ > static final int BEZIER_RIGHT = 30; > static final int BEZIER_LEFT = 30; > static final int MIN_LEFT = 10; >- static final int MIN_RIGHT = 160; >+ static int MIN_RIGHT_WIDTH = 160; >+ static int MIN_RIGHT_HEIGHT = 0; > > static int BORDER1 = SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW; > >@@ -169,11 +170,15 @@ > h += bottomSize.y; > if (bottom != null && (left != null || right != null)) h += BORDER_TOP + BORDER_BOTTOM + BORDER_STRIPE; > w += leftSize.x + rightSize.x; >+ >+ h += left != null ? leftSize.y : rightSize.y; >+ // check for the minimum right height >+ h = Math.max(h, MIN_RIGHT_HEIGHT); >+ > if (showCurve) { > w += curve_width - 2*curve_indent; > h += BORDER_TOP + BORDER_BOTTOM + 2*BORDER_STRIPE; > } >- h += left != null ? leftSize.y : rightSize.y; > > if (wHint != SWT.DEFAULT) w = wHint; > if (hHint != SWT.DEFAULT) h = hHint; >@@ -343,7 +348,7 @@ > Point size = getSize(); > if (!(0 < x && x < size.x)) return; > rightWidth = size.x - x - rightDragDisplacement; >- rightWidth = Math.max(MIN_RIGHT, rightWidth); >+ rightWidth = Math.max(MIN_RIGHT_WIDTH, rightWidth); > layout(); > return; > } >@@ -589,5 +594,21 @@ > curve_width-BEZIER_RIGHT, 0, curve_width, 0, > curve_width); > } >+} >+ >+/** >+ * Method to set the minimum width of the CBanner's right item >+ * @param minWidth the minimum width of the perspective bar >+ */ >+public void setMinRightWidth(int minWidth) { >+ MIN_RIGHT_WIDTH = minWidth; >+} >+ >+/** >+ * Method to set the minimum height of the CBanner's right item >+ * @param minHeight the minimum height of the perspective bar >+ */ >+public void setMinRightHeight(int minHeight) { >+ MIN_RIGHT_HEIGHT = minHeight; > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 60768
: 12920 |
12921
|
12968