X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FMoveList.vue;h=d2ae3f3514e4081e0fe2a74ac5ac1057ec618161;hp=6eaf43ce40d881f90433b17f578c558d96774f3c;hb=49dad26138d3dee0cacbb94ad8d3d3eff12c477a;hpb=c0b036aaf5a2a8e477c955623df2a8e5ce826151 diff --git a/client/src/components/MoveList.vue b/client/src/components/MoveList.vue index 6eaf43ce..d2ae3f35 100644 --- a/client/src/components/MoveList.vue +++ b/client/src/components/MoveList.vue @@ -149,6 +149,9 @@ export default { adjustBoard: function() { const boardContainer = document.getElementById("boardContainer"); if (!boardContainer) return; //no board on page + let arrows = document.getElementById("arrowCanvas"); + // TODO: arrows on board don't scale + if (!!arrows) this.$emit("reset-arrows"); const k = document.getElementById("boardSize").value; const movesWidth = window.innerWidth >= 768 ? 280 : 0; const minBoardWidth = 240; //TODO: these 240 and 280 are arbitrary...