Bug 400320 - Add Button#getTextBounds()
Summary: Add Button#getTextBounds()
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-08 09:46 EST by Dani Megert CLA
Modified: 2017-12-07 16:21 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2013-02-08 09:46:26 EST
4.3 M5a.

Dependent controls need to be horizontally aligned to the parent's text. We tried to compute the indent for dependent controls (see bug 341604 comment 5 for our closest solution) but failed because we do not have enough information, e.g. the margin between a check box and the starting text, or the margin after the text.

We need Button#getTextBounds() which will allow us to get the correct indent.