if text width is larger than label width,
text label goes wrong size.
Change-Id: Ib094b68a70ac0a5f6bbc082fc0ac9666c03625bf
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
GC gc = new GC(titleLabel);
gc.setFont(titleLabel.getFont());
p = gc.textExtent(title);
+ gc.dispose();
if (p.x > TITLE_WIDTH) {
// font size -1
titleLabel.setFont(FontResources.DETAIL_LABEL_FONT.getFont());
}
- TITLE_WIDTH = p.x;
- gc.dispose();
FormData data = new FormData();
data.left = new FormAttachment(0, TITLE_LEFT_GAP); // 15