Skip to main content



      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
Eclipse UserFriend
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 299 times)
  • Attachment: after.png
    (Size: 7.40KB, Downloaded 283 times)
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
Eclipse UserFriend
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
Eclipse UserFriend
Nope. I worked around it by choosing a different look and feel. Sad
Previous Topic:@Inject in MPart?
Next Topic:Re: Issues when creating a new custom menu using command
Goto Forum:
  


Current Time: Tue Jul 08 00:46:57 EDT 2025

Powered by FUDForum. Page generated in 0.26638 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top