Author: max.andersen(a)jboss.com
Date: 2007-11-06 07:51:28 -0500 (Tue, 06 Nov 2007)
New Revision: 4733
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ComboContribution.java
Log:
JBIDE-1254 hql toolbar broken on Mac and Linux
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ComboContribution.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ComboContribution.java 2007-11-06
12:25:14 UTC (rev 4732)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ComboContribution.java 2007-11-06
12:51:28 UTC (rev 4733)
@@ -28,7 +28,13 @@
protected Control createControl(Composite parent) {
Composite panel = new Composite( parent, SWT.NONE );
- panel.setLayout( new GridLayout(2,false) );
+ GridLayout gridLayout = new GridLayout(2,false);
+ gridLayout.horizontalSpacing = 1;
+ gridLayout.verticalSpacing = 1;
+ gridLayout.marginHeight=0;
+ gridLayout.marginWidth=0;
+ //gridLayout.
+ panel.setLayout( gridLayout );
if(getLabelText()!=null) {
Label label = new Label(panel, SWT.None);
@@ -43,7 +49,7 @@
comboControl.pack();
GridData gd = new GridData();
gd.grabExcessHorizontalSpace = true;
- gd.verticalIndent = -8;
+ //gd.verticalIndent = -8;
gd.widthHint = getComboWidth();
gd.verticalAlignment = GridData.CENTER;
gd.horizontalAlignment = GridData.END;
@@ -62,6 +68,10 @@
return 100;
}
+ protected int computeWidth(Control control) {
+ return super.computeWidth(control);
+ }
+
protected boolean isReadOnly() {
return true;
}
Show replies by date