| Summary: | CTabRendering uses cornerSize in computeTrim but it should not. | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Mike Marchand <mmarchand> | ||||||||||||||||
| Component: | UI | Assignee: | Mike Marchand <mmarchand> | ||||||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||||||||
| Severity: | normal | ||||||||||||||||||
| Priority: | P3 | CC: | Lars.Vogel, philippe.dul | ||||||||||||||||
| Version: | 4.16 | ||||||||||||||||||
| Target Milestone: | 4.16 M3 | ||||||||||||||||||
| Hardware: | PC | ||||||||||||||||||
| OS: | Windows 10 | ||||||||||||||||||
| See Also: |
https://git.eclipse.org/r/161023 https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=40500009cce062f9a81533e94f1e310fdc9f76de https://git.eclipse.org/r/161062 https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=382e93b1405079871ad2353e870e954e60422c57 |
||||||||||||||||||
| Whiteboard: | |||||||||||||||||||
| Bug Depends on: | |||||||||||||||||||
| Bug Blocks: | 538740 | ||||||||||||||||||
| Attachments: |
|
||||||||||||||||||
|
Description
Mike Marchand
Created attachment 282455 [details]
16px corners
Created attachment 282456 [details]
20px corners
Created attachment 282457 [details]
30px corners
Created attachment 282458 [details]
40px corners
So, to reiterate, the 4 images demonstrate how corner radius affects more than just the radius in the trim computation. It is important for the trim computation to be independent of the corner radius so that the view can always be drawn in a consistent manner. This is going to be important for square tabs, which are corner radius 0. Created attachment 282459 [details]
Tab outline
This image shows the tab outline that is never accounted for in the trim computation.
Created attachment 282460 [details]
Post-fix 16px corner with 0 top padding
This shows what it looks like after my fix, without changing the top padding in the css to match the left, right, bottom padding. Finally, the padding for the contents of the view is 0px, as specified.
Created attachment 282461 [details]
Post-fix 16px corner with 2px top padding
And at last, we have our view with a 2px top padding, matching the left, right and bottom padding.
New Gerrit change created: https://git.eclipse.org/r/161023 Gerrit change https://git.eclipse.org/r/161023 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=40500009cce062f9a81533e94f1e310fdc9f76de Can you update eclipse.platform.ui\bundles\org.eclipse.ui.themes\css\e4_basestyle.css too ? Thanks (In reply to Philippe Dul from comment #11) > Can you update > eclipse.platform.ui\bundles\org.eclipse.ui.themes\css\e4_basestyle.css too ? > > Thanks Philippe, please push Gerrit. New Gerrit change created: https://git.eclipse.org/r/161062 Gerrit change https://git.eclipse.org/r/161062 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=382e93b1405079871ad2353e870e954e60422c57 |