Skip to content

Commit

Permalink
Fix the issue - [OS][SPM] "fx" is not shown completely in new computed
Browse files Browse the repository at this point in the history
column window (LINUX)[58892]
  • Loading branch information
xwu authored and dgao committed May 20, 2013
1 parent a7844e5 commit f6419b5
Showing 1 changed file with 8 additions and 2 deletions.
Expand Up @@ -1996,11 +1996,16 @@ public static void setExpressionButtonImage( Button button )
Image image = ReportPlatformUIImages.getImage( imageName );

GridData gd = new GridData( );
if ( !Platform.getOS( ).equals( Platform.OS_MACOSX ) )
if ( Platform.getOS( ).equals( Platform.OS_WIN32 ) )
{
gd.widthHint = 20;
gd.heightHint = 20;
}
else
{
gd.widthHint = button.computeSize( SWT.DEFAULT, SWT.DEFAULT ).y;
}

button.setLayoutData( gd );

button.setImage( image );
Expand Down Expand Up @@ -2030,10 +2035,11 @@ public static ExpressionButton createExpressionButton( Composite parent,
button.setExpressionButtonProvider( provider );

GridData gd = new GridData( );
if ( !Platform.getOS( ).equals( Platform.OS_MACOSX ) )
if ( Platform.getOS( ).equals( Platform.OS_WIN32 ) )
{
gd.heightHint = 20;
}

button.getControl( ).setLayoutData( gd );
return button;
}
Expand Down

0 comments on commit f6419b5

Please sign in to comment.