| Summary: | SWT Snippets use incorrect positioning | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Ralf Sternberg <rsternberg> | ||||
| Component: | SWT | Assignee: | Felipe Heidrich <eclipse.felipe> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | eclipse.felipe, ruediger.herrmann | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Ralf Sternberg
Created attachment 185474 [details]
SWT Snippet40 on RAP
This screenshot shows how Snippet40 is rendered in RAP. In this case, the Shell's client area starts at (5, 27).
Fixed in HEAD, thank you. (In reply to comment #0) > a couple of the official SWT snippets show this bad practice which other snippets are wrong ? Thanks for the quick fix! A layout is of course much better than absolute positioning. (In reply to comment #3) > which other snippets are wrong ? Hmm, there are quite a lot, let's start at the beginning (it seems to get better in the newer snippets): Snippets 3, 4, 7, 9, 11, 12, 17, 18, 19, 20, 21, 22, 26, 32, 34, 35, 36, 41, 44, 45, 46, 47, 49, 52, 53, 54, 55, 56, 57, 58, 59, ... I'm not 100% sure about Snippet 5, but I think it has the same problem. BTW, just stumbled upon a "new Text (shell, 0)" in snippet 22, this should probably be replaced by a style flag. |