From 88b627d45cb1db4991ee8ff17eb37293771aecf9 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 31 Mar 2015 12:47:55 -0400 Subject: resize --- public/assets/test/ortho2.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'public') diff --git a/public/assets/test/ortho2.html b/public/assets/test/ortho2.html index 733c90c..ddc1dde 100644 --- a/public/assets/test/ortho2.html +++ b/public/assets/test/ortho2.html @@ -56,6 +56,11 @@ map = new Map ({ height: window.innerHeight, zoom: -2, }) +$(window).resize(function(){ + scene.width = window.innerWidth/2 + map.canvas.width = map.dimensions.a = window.innerWidth/2 +}) + var placing = false var points, mx_points = [] -- cgit v1.2.3-70-g09d2