Skip to content

Commit

Permalink
Fix page layout breaking on resize
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandruGhergut committed May 4, 2016
1 parent 688616f commit b18e4f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ canvas {
box-sizing: border-box;
border: 2px solid black;
height: 100%;
width: 50%;
/*width: 50%;*/
overflow: hidden;
background: #F0F8FF;
}
Expand Down
1 change: 1 addition & 0 deletions assets/scripts/drawboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ document.addEventListener("DOMContentLoaded", function() {
}

var canvas = document.getElementById("drawboard");
var chatBox = document.getElementById("chat");
canvas.width = window.innerWidth / 2;
canvas.height = window.innerHeight;
var context = canvas.getContext("2d");
Expand Down

0 comments on commit b18e4f1

Please sign in to comment.