projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
loseOnRepetition: getter seems enough
[vchess.git]
/
client
/
src
/
components
/
BaseGame.vue
diff --git
a/client/src/components/BaseGame.vue
b/client/src/components/BaseGame.vue
index
4b6529f
..
ee3bea1
100644
(file)
--- 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"
:incheck="incheck"
@play-move="play"
@click-square="clickSquare"
+ @rendered="adjustSize"
)
#turnIndicator(v-if="showTurn") {{ turn }}
#controls.button-group
)
#turnIndicator(v-if="showTurn") {{ turn }}
#controls.button-group
@@
-43,6
+44,7
@@
div#baseGame
p#fenAnalyze(v-show="showFen") {{ (!!vr ? vr.getFen() : "") }}
#movesList
MoveList(
p#fenAnalyze(v-show="showFen") {{ (!!vr ? vr.getFen() : "") }}
#movesList
MoveList(
+ ref="moveslist"
:show="showMoves"
:canAnalyze="canAnalyze"
:canDownload="allowDownloadPGN"
: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();
},
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();
},
redrawBoard: function() {
this.$refs["board"].re_setDrawings();
},