Bug 96582 - [Forms] Section background color leaks beyond the titlebar border
Summary: [Forms] Section background color leaks beyond the titlebar border
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: platform-ua-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-25 05:59 EDT by Roland Tepp CLA
Modified: 2008-06-11 12:09 EDT (History)
1 user (show)

See Also:


Attachments
screenshot of section background color bleeding (2.91 KB, image/png)
2005-05-25 07:20 EDT, Roland Tepp CLA
no flags Details
Section with background color in 3.4 RC3 (1.61 KB, image/png)
2008-06-11 12:02 EDT, Adam Archer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Tepp CLA 2005-05-25 05:59:48 EDT
When using Section along with title styles (TITLE_BAR or SHORT_TITLE_BAR) and
setting section background to any color but the background color of the parent
composite, the section background "leaks through" above the titlebar borders,
making the whole titlebar thing look rather bad.

This way it is impossible to create titled sections that have different
background color than the default background color of the whole form (and still
look good).
Comment 1 Roland Tepp CLA 2005-05-25 07:20:49 EDT
Created attachment 21709 [details]
screenshot of section background color bleeding

Attaching a screenshot - see how the background color of the section bleeds
around the title bar border?

(Yeah - I picked these colors to stand out more)

Ideally I'd expect the area behind the titlebar to have the same background as
its parent.

Actually - this screenshot reveals another Section widget weirdnesses:
   Section title has its own background color (Bug 81961)
Comment 2 Dejan Glozic CLA 2005-06-03 00:13:47 EDT
This is a known limitation. Section title is currently using an SWT Label 
widget which is opaque. Until this is fixed, you are advised to use light, 
airy gradients that minimise this problem (as in the default colors).
Comment 3 Roland Tepp CLA 2005-07-14 13:29:26 EDT
No - You misunderstand me...

I filed this bug report to display a problem with section background color (red
on the screenshot) leaking above and beyond the section content.

the way it is implemented now - I can not usa a section that has a different
background than it's parent, since the background color of this section fills
the entire gectangle the Section widget occupies...

I would at least expect that areas above the title bar and on the sides (margin
width) would be painted with the same background color as parents.

On a related note - there is a weird 4 pixel gap between section margin and it's
client Control - why would this be necessary?
Comment 4 Adam Archer CLA 2008-06-11 12:02:13 EDT
Created attachment 104495 [details]
Section with background color in 3.4 RC3

I tried this in 3.4 RC3 and found that the background color lines up with the title bar now.
Comment 5 Adam Archer CLA 2008-06-11 12:09:22 EDT
Closing as WORKSFORME.