From a862c55cc83aa342058d0c310a7b426327c335ef Mon Sep 17 00:00:00 2001 From: David Siegfried <david.siegfried@uni-vechta.de> Date: Wed, 19 Oct 2022 07:44:26 +0000 Subject: [PATCH] use innerHeight instead outerHeight, closes #1689 Closes #1689 Merge request studip/studip!1091 --- resources/vue/components/StudipDialog.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/vue/components/StudipDialog.vue b/resources/vue/components/StudipDialog.vue index 5bcd3034c71..242bc230ac0 100644 --- a/resources/vue/components/StudipDialog.vue +++ b/resources/vue/components/StudipDialog.vue @@ -211,14 +211,14 @@ export default { initSize() { this.currentWidth = parseInt(this.width, 10); this.currentHeight = parseInt(this.height, 10); - if (window.outerWidth > this.currentWidth) { - this.left = (window.outerWidth - this.currentWidth) / 2; + if (window.innerWidth > this.currentWidth) { + this.left = (window.innerWidth - this.currentWidth) / 2; } else { this.left = 5; - this.currentWidth = window.outerWidth - 16; + this.currentWidth = window.innerWidth - 16; } - this.top = (window.outerHeight - this.currentHeight) / 2; + this.top = (window.innerHeight - this.currentHeight) / 2; this.footerHeight = this.$refs.footer.offsetHeight; }, resizeHandler(data) { -- GitLab