|How to size Composite based on CSS background-image? [message #1095278]
||Mon, 26 August 2013 17:54
| Erwin Hogeweg
Registered: July 2009
This question is related to http://www.eclipse.org/forums/index.php/t/511895/
The CSS definition below works like a charm:
background-image: url( images/my-image.jpg );
background-position: center center;
How do I size the Composite based on the image size though? If I specify the parent's layout as FillLayout the background image is perfectly centered, surrounded by background-color (as expected), and if I specify the parent's layout as GridLayout the dialog shows up as a 100*100 section of my-image.
I am sure there is a solution, I just haven't figured it out yet.
As always, you help is highly appreciated.
Powered by FUDForum
. Page generated in 0.02718 seconds