| Summary: | CBanner at top does vertical sizing based on left components | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Douglas Pollock <douglas.pollock> | ||||||||
| Component: | UI | Assignee: | Hanna Farah <farahtech2002> | ||||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | sxenos | ||||||||
| Version: | 3.0 | Keywords: | accessibility | ||||||||
| Target Milestone: | 3.1 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Douglas Pollock
stefan, here is another perspective bug can you recreate this now Doug? Actually if I use Extra Large fonts on WinXp I can recreate this there as well. The height of the CBanner should be at least as high as one row of perspective icons OR main coolbar items which ever is higher. I can still see this. fixed in HEAD, reviewed by DP, Hanna and mvm reopening, this caused a regression in CBanner, this bug is not going in for RC3 Created attachment 12920 [details]
Fix for CBanner
Created attachment 12921 [details]
Fix for UI Workbench
Created attachment 12968 [details]
Fix for UI Workbench
This is a better fix for UI Workbench, better performance and correct size of
CBanner on start up.
I have released new API on CBanner into HEAD. See CBanner.setRightMinimumSize (Point) and CBanner.getRightMinimumSize(). I have some suggestions for the patch to UI workbench: 1) You need to call PerspectiveSwitcher.updateCBannerHeight every time you add or remove a perspective from the toolbar - otherwise there is no point in iterating over the items in the toolbar to get the max height - you may as well just use the first one. 2) PerspectiveSwitcher.updateCBannerHeight should also update the minimum width for the right based on the widest item plus room for the chevron 3) In setCoolItemSize, it does not seem neccessary to iterate again over the toolitems and get the tallest item since that value should be correctly stored in CBanner.getRightMinimumSize(). 4) I still don't see what the following code in setCoolItemSize is doing: area.height = topBar.getLeft().getBounds().height; I think it either has no effect or it is bad. fixed in HEAD verified on win2k build 3.1 RC1 |