directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r810140 - /directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorQuickFilterWidget.java
Date Tue, 01 Sep 2009 17:39:35 GMT
Author: pamarcelot
Date: Tue Sep  1 17:39:35 2009
New Revision: 810140

URL: http://svn.apache.org/viewvc?rev=810140&view=rev
Log:
Fix for DIRSTUDIO-531 (Unpretty 2-3 pixels height margin at the top of the Search Results
editor).

Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorQuickFilterWidget.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorQuickFilterWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorQuickFilterWidget.java?rev=810140&r1=810139&r2=810140&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorQuickFilterWidget.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorQuickFilterWidget.java
Tue Sep  1 17:39:35 2009
@@ -95,6 +95,11 @@
         gl.marginHeight = 2;
         gl.marginWidth = 2;
         composite.setLayout( gl );
+        // Setting the default width and height of the composite to 0
+        GridData compositeGridData = new GridData( SWT.NONE, SWT.NONE, false, false );
+        compositeGridData.heightHint = 0;
+        compositeGridData.widthHint = 0;
+        composite.setLayoutData( compositeGridData );
 
         innerComposite = null;
     }
@@ -105,6 +110,10 @@
      */
     private void create()
     {
+        // Reseting the layout of the composite to be displayed correctly
+        GridData compositeGridData = new GridData( SWT.FILL, SWT.NONE, true, false );
+        composite.setLayoutData( compositeGridData );
+        
         innerComposite = BaseWidgetUtils.createColumnContainer( this.composite, 2, 1 );
 
         quickFilterValueText = new Text( innerComposite, SWT.BORDER );
@@ -164,6 +173,12 @@
      */
     private void destroy()
     {
+        // Reseting the layout of the composite with a width and height set to 0
+        GridData compositeGridData = new GridData( SWT.NONE, SWT.NONE, false, false );
+        compositeGridData.heightHint = 0;
+        compositeGridData.widthHint = 0;
+        composite.setLayoutData( compositeGridData );
+        
         if ( !"".equals( quickFilterValueText.getText() ) ) //$NON-NLS-1$
         {
             quickFilterValueText.setText( "" ); //$NON-NLS-1$



Mime
View raw message