mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 17:03:09 +02:00
wip
This commit is contained in:
parent
205e728025
commit
00aaf300c4
1 changed files with 7 additions and 5 deletions
|
@ -82,6 +82,7 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
Vue.nextTick(() => {
|
||||||
const main = this.$refs.main as any;
|
const main = this.$refs.main as any;
|
||||||
main.style.top = '15%';
|
main.style.top = '15%';
|
||||||
main.style.left = (window.innerWidth / 2) - (main.offsetWidth / 2) + 'px';
|
main.style.left = (window.innerWidth / 2) - (main.offsetWidth / 2) + 'px';
|
||||||
|
@ -89,6 +90,7 @@ export default Vue.extend({
|
||||||
window.addEventListener('resize', this.onBrowserResize);
|
window.addEventListener('resize', this.onBrowserResize);
|
||||||
|
|
||||||
this.open();
|
this.open();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
destroyed() {
|
destroyed() {
|
||||||
|
|
Loading…
Reference in a new issue