projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Experimental board size auto-adjust
[vchess.git]
/
client
/
src
/
components
/
Board.vue
diff --git
a/client/src/components/Board.vue
b/client/src/components/Board.vue
index
799185e
..
a871dc3
100644
(file)
--- a/
client/src/components/Board.vue
+++ b/
client/src/components/Board.vue
@@
-31,6
+31,7
@@
export default {
circles: {}, //object of squares' ID --> true (TODO: use a set?)
click: "",
clickTime: 0,
circles: {}, //object of squares' ID --> true (TODO: use a set?)
click: "",
clickTime: 0,
+ initialized: 0,
settings: store.state.settings
};
},
settings: store.state.settings
};
},
@@
-463,6
+464,8
@@
export default {
}
};
}
}
};
}
+ if (this.initialized == 1) this.$emit("rendered");
+ if (this.initialized <= 1) this.initialized++;
return (
h(
"div",
return (
h(
"div",