How to size Composite based on CSS background-image? [message #1095278] |
Mon, 26 August 2013 17:54  |
Eclipse User |
|
|
|
Hi,
This question is related to http://www.eclipse.org/forums/index.php/t/511895/
The CSS definition below works like a charm:
Composite.backgroundImage{
background-color: #123456;
background-image: url( images/my-image.jpg );
background-repeat: no-repeat;
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.
Kind Regards,
Erwin
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04055 seconds