mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-28 00:16:46 +00:00
Resizing the RaceBoardPanel after setting it as widget
This commit is contained in:
+7
-1
@@ -117,13 +117,19 @@ public class TVViewPanel extends SimplePanel implements RaceTimesInfoProviderLis
|
||||
currentRace = null;
|
||||
}
|
||||
|
||||
private void showRaceBoard() {
|
||||
setWidget(raceBoardPanel);
|
||||
//Setting the size or the race board wouldn't be displayed
|
||||
raceBoardPanel.setSize("100%", "100%");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void raceTimesInfosReceived(Map<RaceIdentifier, RaceTimesInfoDTO> raceTimesInfo) {
|
||||
if (currentRace == null) {
|
||||
currentRace = getFirstStartedAndUnfinishedRace();
|
||||
if (currentRace != null) {
|
||||
raceBoardPanel = createRaceBoardPanel(leaderboard.name, currentRace);
|
||||
setWidget(raceBoardPanel);
|
||||
showRaceBoard();
|
||||
} else {
|
||||
showLeaderboard();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user