Css fix for the image under preview
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/image-previewer-widget@122487 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
34b883a285
commit
16ed07f3d1
|
@ -21,7 +21,7 @@ public class ImagePreviewer implements EntryPoint {
|
|||
public void onModuleLoad() {
|
||||
|
||||
// decomment for testing purpose
|
||||
test();
|
||||
//test();
|
||||
|
||||
}
|
||||
|
||||
|
@ -33,25 +33,26 @@ public class ImagePreviewer implements EntryPoint {
|
|||
images.add(new EnhancedImage("https://i.ytimg.com/vi/ReF6iQ7M5_A/maxresdefault.jpg"));
|
||||
images.add(new EnhancedImage("http://www.symphony-solutions.eu/wp-content/uploads/2014/09/GDG-DevFest-Ukraine-Banner.jpg"));
|
||||
images.add(new EnhancedImage("http://images6.alphacoders.com/316/316963.jpg"));
|
||||
images.add(new EnhancedImage("http://ftp.d4science.org/previews/2771b8d3-7b39-451e-a642-fd7eea1c1baa.jpg"));
|
||||
images.add(new EnhancedImage("http://nerdist.com/wp-content/uploads/2014/07/ned-stark-970x545.jpg"));
|
||||
images.add(new EnhancedImage("http://vignette2.wikia.nocookie.net/gameofthrones/images/2/25/Eddard's_Head.png/revision/latest?cb=20121205211321"));
|
||||
images.add(new EnhancedImage("https://upload.wikimedia.org/wikipedia/it/1/17/Il_grande_Lebowski.jpg"));
|
||||
|
||||
|
||||
|
||||
|
||||
final Carousel c = new Carousel();
|
||||
c.updateImages(images);
|
||||
|
||||
|
||||
// button to show the carousel
|
||||
Button b = new Button(new ClickHandler() {
|
||||
|
||||
|
||||
@Override
|
||||
public void onClick(ClickEvent event) {
|
||||
c.show();
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
b.setText("Show images");
|
||||
|
||||
|
||||
RootPanel.get("image-previewer-div").add(b);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
|
||||
xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:b="urn:import:com.github.gwtbootstrap.client.ui">
|
||||
<ui:style>
|
||||
|
||||
.image {
|
||||
margin: auto;
|
||||
width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.image-loading {
|
||||
|
@ -28,7 +29,7 @@
|
|||
@external .modal-body;
|
||||
.modal-body {
|
||||
position: relative;
|
||||
max-height: 400px;
|
||||
max-height: 500px;
|
||||
padding: 0;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue