Skip to main content


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 20:10 Go to next message
Jo Jaquinta is currently offline Jo JaquintaFriend
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 248 times)
  • Attachment: after.png
    (Size: 7.40KB, Downloaded 258 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] Tue, 19 November 2013 00:54 Go to previous messageGo to next message
Nate Pendleton is currently offline Nate PendletonFriend
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 15:48 Go to previous message
Jo Jaquinta is currently offline Jo JaquintaFriend
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: Fri Apr 26 05:30:29 GMT 2024

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

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

Back to the top