Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Browser widget does not display image that uses opacity from css
Browser widget does not display image that uses opacity from css [message #1711701] Mon, 19 October 2015 11:32 Go to next message
Kris Slowinski is currently offline Kris SlowinskiFriend
Messages: 18
Registered: August 2011
Junior Member
I have a RCP application that uses SWT Browser image to display a webpage that has Img elements for which opacity is set using css. I use SWT 3.8.1 and what is strange about the issue is that it cannot be reproduced using the Browser widget snippets when running with the same version of SWT.

Question about inspecting what happens - can you recommend any particular tools that you found useful in similar cases? Any advice that could point a way to start solving this is appreciated.
Re: Browser widget does not display image that uses opacity from css [message #1712042 is a reply to message #1711701] Wed, 21 October 2015 04:48 Go to previous messageGo to next message
Niraj Modi is currently offline Niraj ModiFriend
Messages: 48
Registered: November 2013
Member
Hi Kris,
Please try with latest version of Eclipse SWT 4.5.1:
http://download.eclipse.org/eclipse/downloads/drops4/R-4.5.1-201509040015/#SWT
Re: Browser widget does not display image that uses opacity from css [message #1712052 is a reply to message #1712042] Wed, 21 October 2015 06:28 Go to previous messageGo to next message
Kris Slowinski is currently offline Kris SlowinskiFriend
Messages: 18
Registered: August 2011
Junior Member
Target platform of the application is version 3.8.1, would an update of SWT only be a valid option?
Re: Browser widget does not display image that uses opacity from css [message #1712062 is a reply to message #1712052] Wed, 21 October 2015 07:27 Go to previous message
Kris Slowinski is currently offline Kris SlowinskiFriend
Messages: 18
Registered: August 2011
Junior Member
The strange thing is that the page can be displayed correctly using this snippet http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet128.java.
And here SWT 3.8.1 is used and that works - all image elements are rendered correctly with opacity. So probably the Browser widget inside the RPC application is missing some configuration?

It was identified that the image elements that disappear use this css
.dxm-disabled img {
opacity: 0.4;
filter: alpha(opacity=40);
}
Previous Topic:Shortcut key for combobox?
Next Topic:SWT Browser on Windows
Goto Forum:
  


Current Time: Fri Apr 26 04:28:43 GMT 2024

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

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

Back to the top