X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;fp=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=ee3bea181fb52a12e57298cc9b3fd3e79b2245ac;hp=4b6529ffde91308a4917b412dee3b78bb5a68f2c;hb=bc1e1f2adf7de1efdf29933a666bcce4214e132f;hpb=89a6214b27561878670914a65902aa51682efe61 diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 4b6529ff..ee3bea18 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -22,6 +22,7 @@ div#baseGame :incheck="incheck" @play-move="play" @click-square="clickSquare" + @rendered="adjustSize" ) #turnIndicator(v-if="showTurn") {{ turn }} #controls.button-group @@ -43,6 +44,7 @@ div#baseGame p#fenAnalyze(v-show="showFen") {{ (!!vr ? vr.getFen() : "") }} #movesList MoveList( + ref="moveslist" :show="showMoves" :canAnalyze="canAnalyze" :canDownload="allowDownloadPGN" @@ -206,6 +208,9 @@ export default { if (e.deltaY < 0) this.undo(); else if (e.deltaY > 0) this.play(); }, + adjustSize: function() { + this.$refs["moveslist"].adjustBoard("vertical"); + }, redrawBoard: function() { this.$refs["board"].re_setDrawings(); },