Fix Safari bug.

This commit is contained in:
Sam El-Husseini 2017-12-18 13:19:49 -08:00
parent 6320379d02
commit 84c1079e50

View File

@ -398,7 +398,7 @@ namespace pxsim.visuals {
let state = ev3board().screenState;
const bBox = this.layoutView.getBrick().getScreenBBox();
if (bBox.width == 0) return;
if (!bBox || bBox.width == 0) return;
const scale = bBox.width / SCREEN_WIDTH;
this.screenScaledWidth = bBox.width;