directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r601141 - /directory/studio/trunk/studio-ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java
Date Tue, 04 Dec 2007 23:14:23 GMT
Author: seelmann
Date: Tue Dec  4 15:14:22 2007
New Revision: 601141

URL: http://svn.apache.org/viewvc?rev=601141&view=rev
Log:
Fixed too wide filter widget under windows.

Modified:
    directory/studio/trunk/studio-ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java

Modified: directory/studio/trunk/studio-ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java?rev=601141&r1=601140&r2=601141&view=diff
==============================================================================
--- directory/studio/trunk/studio-ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java
(original)
+++ directory/studio/trunk/studio-ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java
Tue Dec  4 15:14:22 2007
@@ -115,17 +115,22 @@
      */
     public void createWidget( final Composite parent )
     {
+        Composite composite = BaseWidgetUtils.createColumnContainer( parent, 1, 1 );
+        GridData gd = new GridData( GridData.FILL_HORIZONTAL );
+        gd.horizontalSpan = 1;
+        gd.widthHint = 200;
+        composite.setLayoutData( gd );
+        
         // filter combo with field decoration
         final FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
             FieldDecorationRegistry.DEC_CONTENT_PROPOSAL );
-        filterComboField = new DecoratedField( parent, SWT.NONE, new IControlCreator()
+        filterComboField = new DecoratedField( composite, SWT.NONE, new IControlCreator()
         {
             public Control createControl( Composite parent, int style )
             {
                 Combo combo = BaseWidgetUtils.createCombo( parent, new String[0], -1, 1 );
                 GridData gd = new GridData( GridData.FILL_HORIZONTAL );
                 gd.horizontalSpan = 1;
-                gd.widthHint = 200;
                 combo.setLayoutData( gd );
                 combo.setVisibleItemCount( 20 );
                 return combo;



Mime
View raw message