proposal for bug2515: chart width remains unchanged; height always consumes available vertical window space

This commit is contained in:
Axel Uhl committed 2015-02-11 14:39:39 +01:00
1 parent 143ae6aeee
commit 79e27fad8a
1 file changed
+4 -2
@@ -246,7 +246,9 @@ public abstract class AbstractCompetitorLeaderboardChart<SettingsType> extends A
break;
}
chart.setSizeToMatchContainer();
// TODO will removing the following line do harm on any usage of this abstract base class?
// chart.setSizeToMatchContainer();
// it's important here to recall the redraw method, otherwise the bug fix for wrong checkbox
// positions (nativeAdjustCheckboxPosition)
// in the BaseChart class would not be called
@@ -301,7 +303,7 @@ public abstract class AbstractCompetitorLeaderboardChart<SettingsType> extends A
}
private void setHeight() {
chart.setHeight(Window.getClientHeight());
chart.setSize(chart.getOffsetWidth(), Window.getClientHeight());
}
private void fillTotalPointsSeries(