Permalink
Browse files

fix removeButton width

  • Loading branch information...
1 parent 61d2594 commit 60f639eef3ca6b98a291cdba0b50a3f5d8551d15 @ge0ffrey ge0ffrey committed Jul 25, 2012
@@ -59,6 +59,9 @@ public PathWidget(SimulationPathModel path, SimulationTestEventHandler simulatio
this.path = path;
this.simulationTestEventHandler = simulationTestEventHandler;
initWidget(uiBinder.createAndBindUi(this));
+ flexTable.getColumnFormatter().addStyleName(0, simulationStyle.distanceMillisColumn());
+ flexTable.getColumnFormatter().addStyleName(1, simulationStyle.stepWidgetColumn());
+ flexTable.getColumnFormatter().addStyleName(2, simulationStyle.removeStepColumn());
int stepIndex = 0;
for (SimulationStepModel step : path.getSteps().values()) {
addStepWidget(stepIndex, step);
@@ -68,8 +71,8 @@ public PathWidget(SimulationPathModel path, SimulationTestEventHandler simulatio
// TODO remove stepIndex parameter
private void addStepWidget(int stepIndex, SimulationStepModel step) {
- Label stepLabel = new Label(step.getDistanceMillis() + " ms");
- flexTable.setWidget(stepIndex, 0, stepLabel);
+ Label distanceMillisLabel = new Label(step.getDistanceMillis() + " ms");
+ flexTable.setWidget(stepIndex, 0, distanceMillisLabel);
StepWidget stepWidget = new StepWidget(step, simulationTestEventHandler);
flexTable.setWidget(stepIndex, 1, stepWidget);
flexTable.setWidget(stepIndex, 2, createRemoveStepButton(step));
@@ -16,6 +16,29 @@
@CHARSET "UTF-8";
+.distanceMillisColumn {
+ width: 10%;
+}
+.stepWidgetColumn {
+ width: 90%;
+}
+.removeStepColumn {
+}
+
+.stepWidget {
+ margin: 0px;
+ border: thin solid black;
+ padding: 5px;
+}
+
+.commandImage {
+}
+.commandLabel {
+ font-weight: bold;
+}
+
+/*TimeLine*/
+
@def timeLineScrollPanelWidth 800px;
@def timeLineHeaderHeight 30px;
@@ -46,15 +69,3 @@
margin-left: 700px; /* TODO hard-coded relative to timeLineScrollPanelWidth */
}
-.stepWidget {
- margin: 0px;
- border: thin solid black;
- padding: 5px;
-}
-
-.commandImage {
-}
-.commandLabel {
- font-weight: bold;
-}
-
@@ -20,6 +20,17 @@
public interface SimulationStyle extends CssResource {
+ String distanceMillisColumn();
+ String stepWidgetColumn();
+ String removeStepColumn();
+
+ String stepWidget();
+
+ String commandImage();
+ String commandLabel();
+
+ // TimeLine
+
int timeLineScrollPanelWidth();
int timeLineHeaderHeight();
@@ -36,9 +47,4 @@
String zoomButtonsPanel();
- String stepWidget();
-
- String commandImage();
- String commandLabel();
-
}

0 comments on commit 60f639e

Please sign in to comment.