fix for tab changing and canvas size

This commit is contained in:
Hugh Bord 2021-08-15 12:23:49 +10:00
parent 263fc5fde6
commit 09e70311db

View File

@ -624,12 +624,12 @@ export default {
watch: {
currentAscii(val, old) {
if (val !== old) {
// this.onCanvasResize(
// 100,
// 100,
// this.currentAsciiWidth * blockWidth,
// this.currentAsciiHeight * blockHeight
// );
this.onCanvasResize(
100,
this.top,
this.currentAsciiWidth * blockWidth,
this.currentAsciiHeight * blockHeight
);
this.canvas.width = this.currentAsciiWidth * blockWidth;
this.canvas.height = this.currentAsciiHeight * blockHeight;