Skip to content

Commit 65ef003

Browse files
committed
Editor: default canvas fills preview area like iframe
1 parent 743161d commit 65ef003

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

editor/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
background: #111;
7070
overflow: hidden;
7171
}
72-
#preview-area canvas { display: block !important; }
72+
#preview-area canvas { display: block !important; width: 100% !important; height: 100% !important; }
7373
#preview-area iframe { width: 100%; height: 100%; border: none; display: block; }
7474

7575
#preview-placeholder { color: #555; font-size: 13px; text-align: center; line-height: 2.2; }
@@ -269,6 +269,8 @@
269269
const canvas = document.createElement('canvas');
270270
canvas.id = 'canvas';
271271
canvas.style.display = 'block';
272+
canvas.style.width = '100%';
273+
canvas.style.height = '100%';
272274

273275
area.appendChild(canvas);
274276
window.Module = {

0 commit comments

Comments
 (0)