提交 04b1e1aa 编写于 作者: S serge-rider

Smart combo height fix

上级 38934c26
......@@ -83,9 +83,10 @@ public class CSmartCombo<ITEM_TYPE> extends Composite {
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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册