directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r810133 - /directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetQuickFilterWidget.java
Date Tue, 01 Sep 2009 17:24:39 GMT
Author: pamarcelot
Date: Tue Sep  1 17:24:39 2009
New Revision: 810133

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

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

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetQuickFilterWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetQuickFilterWidget.java?rev=810133&r1=810132&r2=810133&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetQuickFilterWidget.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetQuickFilterWidget.java
Tue Sep  1 17:24:39 2009
@@ -104,6 +104,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;
     }
@@ -114,6 +119,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( composite, 3, 1 );
 
         quickFilterAttributeText = new Text( innerComposite, SWT.BORDER );
@@ -210,6 +219,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( quickFilterAttributeText.getText() ) ) //$NON-NLS-1$
         {
             quickFilterAttributeText.setText( "" ); //$NON-NLS-1$



Mime
View raw message