Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Background stretch
Background stretch [message #1843531] Thu, 05 August 2021 00:05
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 192
Registered: February 2013
Senior Member
Trying set background for composite and doesn't work
I would like stretch image inside composite




Composite grpMain = new Composite(parent, SWT.NONE);
grpMain.setBackgroundMode(SWT.INHERIT_FORCE);
grpMain.setData(RWT.CUSTOM_VARIANT, "backgroundLogin");
grpMain.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

Composite.backgroundLogin {
background-image: url(images/photo2.jpg);
background-repeat: no-repeat;
background-position: center center;
background-color: #1e87b4;
-webkit-background-size: cover;
background-size: cover;
}

Dmitry
Previous Topic:current master does not build due to jetty repo not reachable
Next Topic:Cloning Git Repo
Goto Forum:
  


Current Time: Tue Apr 30 08:57:27 GMT 2024

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

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

Back to the top