Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » CSS Stops Working in a ScrolledComposite
CSS Stops Working in a ScrolledComposite [message #1064150] Mon, 17 June 2013 16:10 Go to next message
Jo Jaquinta is currently offline Jo Jaquinta
Messages: 40
Registered: January 2013
Location: Boston
Member

So I had a bunch of UI code styled with CSS in a Composite and everything was just fine. Specifically I had a nice gradient color on the Composite, and the labels in the composite had a background of 'inherit' which means the gradient shined through.
I decided to put that Composite into a ScrolledComposite because it was getting bigger than the bounding part. BANG! The background of the labels suddenly no longer inherits. It flips to the system default, painting nasty bars across the smooth gradient that was there before. No other code changes.
You can see before.png and after.png below.
The CSS for the labels is pretty simple:

.configUITopAppTitle {
  font: Verdana 9px bold;
  background-color: inherit;
}


What is it about being put in a ScrolledComposite breaks a CSS style of inherit? How do I fix it?
  • Attachment: before.png
    (Size: 7.37KB, Downloaded 72 times)
  • Attachment: after.png
    (Size: 7.40KB, Downloaded 58 times)


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jo Grant, Senior Software Engineer
Admin and Config Console Architect
OpenPages, IBM
Re: CSS Stops Working in a ScrolledComposite [message #1195418 is a reply to message #1064150] Mon, 18 November 2013 19:54 Go to previous messageGo to next message
Nate Pendleton is currently offline Nate Pendleton
Messages: 2
Registered: March 2013
Junior Member
Hey there. I am having the same issue. Were you able to work around it?
Re: CSS Stops Working in a ScrolledComposite [message #1196791 is a reply to message #1195418] Tue, 19 November 2013 10:48 Go to previous message
Jo Jaquinta is currently offline Jo Jaquinta
Messages: 40
Registered: January 2013
Location: Boston
Member

Nope. I worked around it by choosing a different look and feel. Sad

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jo Grant, Senior Software Engineer
Admin and Config Console Architect
OpenPages, IBM
Previous Topic:@Inject in MPart?
Next Topic:Re: Issues when creating a new custom menu using command
Goto Forum:
  


Current Time: Sat Aug 23 15:31:53 EDT 2014

Powered by FUDForum. Page generated in 0.01610 seconds