Skip to content

Commit

Permalink
Pad the visualizer more
Browse files Browse the repository at this point in the history
  • Loading branch information
truell20 committed Nov 28, 2016
1 parent c726e7a commit e525281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/script/visualizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function showGame(game, $container, maxWidth, maxHeight, showmovement, isminimal
if(zoom < 1) zoom = 1;

window.onresize = function() {
var allowedWidth = (maxWidth == null ? $container.width() : maxWidth), allowedHeight = (maxHeight == null ? window.innerHeight - (20 + $("canvas").offset().top) : maxHeight);
var allowedWidth = (maxWidth == null ? $container.width() : maxWidth), allowedHeight = (maxHeight == null ? window.innerHeight - (25 + $("canvas").offset().top) : maxHeight);
console.log(window.innerHeight)
console.log(allowedHeight)
var definingDimension = Math.min(allowedWidth, allowedHeight);
Expand Down

0 comments on commit e525281

Please sign in to comment.