Image Scales

#story[1193]
This commit is contained in:
hba56
2017-09-06 14:53:02 +12:00
parent 4eac3ea8b5
commit 4ec2a50d20
2 changed files with 4 additions and 1 deletions
@@ -6,6 +6,8 @@ import javafx.scene.control.TextField;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;
import mock.app.Event;
import org.xml.sax.SAXException;
import mock.exceptions.EventConstructionException;
@@ -103,6 +105,7 @@ public class HostController extends Controller {
* Hosts a game.
*/
public void hostGame(){
mapImage.fitWidthProperty().bind(((Stage) mapImage.getScene().getWindow()).widthProperty().multiply(0.6));
hostWrapper.setVisible(true);
}