summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-03-31 12:47:55 -0400
committerJules Laplace <jules@okfoc.us>2015-03-31 12:47:55 -0400
commit88b627d45cb1db4991ee8ff17eb37293771aecf9 (patch)
tree9d6597a46da12ebfc8e2b9913e26c4825de951fd
parent835fbcd8b47715d34d17b784409db1d45f992c29 (diff)
resize
-rw-r--r--public/assets/test/ortho2.html5
1 files changed, 5 insertions, 0 deletions
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 = []