projects
/
lantea.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
apply a small hack to display dump button for now, use outerWidth/Height is small...
[lantea.git]
/
js
/
map.js
diff --git
a/js/map.js
b/js/map.js
index cb659f9d2f6f81967557b57fca08fd39017d3de2..d59d06020c758d13c321fc7496dbdf676672d714 100644
(file)
--- a/
js/map.js
+++ b/
js/map.js
@@
-131,8
+131,8
@@
function initMap() {
}
function resizeAndDraw() {
}
function resizeAndDraw() {
- var viewportWidth =
window.innerWidth
;
- var viewportHeight =
window.innerHeight
;
+ var viewportWidth =
Math.min(window.innerWidth, window.outerWidth)
;
+ var viewportHeight =
Math.min(window.innerHeight, window.outerHeight)
;
var canvasWidth = viewportWidth * 0.98;
var canvasHeight = (viewportHeight - 100) * 0.98;
var canvasWidth = viewportWidth * 0.98;
var canvasHeight = (viewportHeight - 100) * 0.98;