move spacing to CSS file;

This commit is contained in:
Christopher Ronnewinkel (D036654) committed 2014-10-07 11:48:04 +02:00
1 parent cac420df8a
commit 26fc5aeebb
3 files changed
+13 -5

No files matched your search

+10
View File
@@ -75,6 +75,16 @@ table {
border: 1px solid #C9CACA;
}
.CombinedWindPanelParentDiv {
padding-top: 34px;
padding-left: 10px;
}
.MapSimulationLegendParentDiv {
padding-top: 10px;
padding-left: 10px;
}
.RaceMap-HeaderPanel {
height: 60px;
width: 100%;
@@ -395,8 +395,7 @@ public class RaceMap extends AbsolutePanel implements TimeListener, CompetitorSe
Image sapLogo = createSAPLogo();
RaceMap.this.add(sapLogo);
map.setControls(ControlPosition.LEFT_TOP, combinedWindPanel);
combinedWindPanel.getParent().getElement().getStyle().setProperty("paddingLeft", "10px");
combinedWindPanel.getParent().getElement().getStyle().setProperty("paddingTop", "34px");
combinedWindPanel.getParent().addStyleName("CombinedWindPanelParentDiv");
RaceMap.this.raceMapImageManager.loadMapIcons(map);
map.setSize("100%", "100%");
@@ -105,7 +105,7 @@ public class RaceSimulationOverlay extends FullCanvasOverlay implements TimeLis
private void createSimulationLegend(MapWidget map) {
simulationLegend = Canvas.createIfSupported();
simulationLegend.setStyleName("gwt-MapSimulationLegend");
simulationLegend.addStyleName("MapSimulationLegend");
simulationLegend.setTitle(stringMessages.simulationLegendTooltip());
/*simulationLegend.addClickHandler(new ClickHandler() {
@Override
@@ -114,8 +114,7 @@ public class RaceSimulationOverlay extends FullCanvasOverlay implements TimeLis
}
});*/
map.setControls(ControlPosition.LEFT_TOP, simulationLegend);
simulationLegend.getParent().getElement().getStyle().setProperty("paddingLeft", "10px");
simulationLegend.getParent().getElement().getStyle().setProperty("paddingTop", "10px");
simulationLegend.getParent().addStyleName("MapSimulationLegendParentDiv");
}
public void onBoundsChanged(boolean zoomChanged) {