fixed css

This commit is contained in:
Francesco Mangiacrapa 2021-10-13 18:29:50 +02:00
parent b236cc3ebb
commit 2186bb40fc
3 changed files with 15 additions and 4 deletions

View File

@ -61,7 +61,7 @@ public class DragDropLayer extends FlowPanel {
getElement().getStyle().setMarginTop(5, Unit.PX);
getElement().getStyle().setMarginBottom(10, Unit.PX);
setWidth("400px");
this.getElement().addClassName("dand-layer");
if (draggable) {
initDrag();
@ -78,7 +78,7 @@ public class DragDropLayer extends FlowPanel {
}
RangeSlider rs = new RangeSlider(applicationBus, layerItem);
rs.setWidth("300px");
rs.getElement().addClassName("range-slider ");
FlexTable ft = new FlexTable();
ft.setWidget(0, 0, draggableButton);
draggableButton.setTitle("Drag and Drop me up or down to change my position on the Map");

View File

@ -51,13 +51,12 @@ public class RangeSlider extends Composite {
@Override
public void onBrowserEvent(Event event) {
System.out.println("ok");
if (Event.ONMOUSEUP == event.getTypeInt()) {
GWT.log("Event.ONMOUSEUP");
DoActionOnDetailLayersEvent actionChangeOpacity = new DoActionOnDetailLayersEvent(
DO_LAYER_ACTION.OPACITY, layer);
int value = Integer.parseInt((String) theSlider.getPropertyObject("value"));
GWT.log("opacity int value: "+value);
//GWT.log("opacity int value: "+value);
double opacity = (double) ((double) value/100);
GWT.log("opacity double value: "+opacity);
actionChangeOpacity.setOpacity(opacity);

View File

@ -344,4 +344,16 @@ body {
background-color: white;
opacity: 80%;
padding: 10px;
}
.dand-layer {
width: 400px;
}
.range-slider {
width: 300px;
}
.range-slider input {
width: 280px;
}