Skip to content

Commit

Permalink
Smart combo height fix
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-rider committed Aug 26, 2018
1 parent 38934c2 commit 04b1e1a
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -83,9 +83,10 @@ public CSmartCombo(Composite parent, int style, ILabelProvider labelProvider)

int heightHint = 0;
{
Text sampleText = new Text(this, SWT.BORDER);
Text sampleText = new Text(this, SWT.NONE);
sampleText.setText("X");
borderTextSize = sampleText.computeSize(SWT.DEFAULT, SWT.DEFAULT);
heightHint = borderTextSize.y - sampleText.getBorderWidth() * 2;
heightHint = borderTextSize.y + 2;
sampleText.dispose();
}

Expand Down

0 comments on commit 04b1e1a

Please sign in to comment.