Skip to content

Commit 2386d68

Browse files
authored
update: canvas should take all space of canvas_div
1 parent 5c978e6 commit 2386d68

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function maze_button_click() {
2222
// disable search button
2323
Array.from(document.getElementsByTagName("button")).forEach(b => b.disabled = true)
2424

25-
MAZE = new TileGrid(ctx, canvas.width, canvas.height, 15)
25+
MAZE = new TileGrid(ctx, canvas.width, canvas.height, 25)
2626
const selected = document.getElementById("maze_alg_selection").value
2727
switch (selected) {
2828
case 'Iterative Depth First Search':

index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
height: 90%;
2121
}
2222

23+
canvas {
24+
width: 100%; /* Fill the width of the canvas_div */
25+
height: 100%; /* Fill the height of the canvas_div */
26+
}
27+
2328
#options_div {
2429
height: 10%;
2530
display: flex;

0 commit comments

Comments
 (0)