| Summary: | [ui] [150 % font size] dialog size is miscalculated | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Helmut J. Haigermoser <helmut.haigermoser> |
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, remy.suen |
| Version: | 3.7 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | stalebug | ||
| Attachments: | |||
|
Description
Helmut J. Haigermoser
Created attachment 202915 [details]
sample project with a dialog demonstrating the issue
Created attachment 202916 [details]
screen shot of the sample with 8 radio buttons
Created attachment 202917 [details]
screen shot of the same sample, but font size set to 150%
CQ:WIND00254111 Let me know what you think! :) Helmut (In reply to comment #4) > CQ:WIND00254111 > Let me know what you think! :) > Helmut Can we get a comment from the UI team, can you reproduce the issue? TIA, Ciao, hh How do you set your windows font to 150%? Is it some basic setting in windows, or one of the eclipse prefs from General>Appearance>Colors and Fonts? PW Created attachment 207017 [details]
Windows 7 configuration dialog
In order to increase the font size I used this Windows 7 dialog...
I can reproduce the problem on Windows 7. You don't necessarily need to include the dialog as a plug-in. The code below will reproduce the problem. If you don't use a TitleAreaDialog but instead extend TrayDialog, the problem doesn't occur.
------------------
public class VerySimple extends TitleAreaDialog {
public VerySimple() {
super(null);
}
@Override
protected Control createDialogArea(Composite parent) {
Composite group = new Composite(parent, SWT.NONE);
group.setLayout(new GridLayout());
group.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
for (String string : new String[] { "1", "2", "3", "4", "5", "6", "7",
"8" }) {
Button button = new Button(group, SWT.PUSH);
button.setText(string);
button.setLayoutData(new GridData(SWT.FILL));
}
return parent;
}
public static void main(String[] args) {
Display display = new Display();
VerySimple dialog = new VerySimple();
dialog.open();
display.dispose();
}
}
Ultimately, could be an issue with TitleAreaDialog or possibly the SWT layout code. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. If the bug is still relevant, please remove the "stalebug" whiteboard tag. |