Fixed finish controller not being stretch and centered.

This commit is contained in:
fjc40
2017-05-25 16:46:24 +12:00
parent 42ae89d20c
commit a095f15eac
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ public class Race implements Runnable {
* Frame periods are multiplied by this to get the amount of time a single frame represents.
* E.g., frame period = 20ms, scale = 5, frame represents 20 * 5 = 100ms, and so boats are simulated for 100ms, even though only 20ms actually occurred.
*/
private int scaleFactor = 15;
private int scaleFactor = 5;
/**
* The race ID of the course.
@@ -51,5 +51,10 @@ public class MainController extends Controller {
AnchorPane.setBottomAnchor(connectionController.startWrapper(), 0.0);
AnchorPane.setLeftAnchor(connectionController.startWrapper(), 0.0);
AnchorPane.setRightAnchor(connectionController.startWrapper(), 0.0);
AnchorPane.setTopAnchor(finishController.finishWrapper, 0.0);
AnchorPane.setBottomAnchor(finishController.finishWrapper, 0.0);
AnchorPane.setLeftAnchor(finishController.finishWrapper, 0.0);
AnchorPane.setRightAnchor(finishController.finishWrapper, 0.0);
}
}