Skip to content
Snippets Groups Projects
Commit a862c55c authored by David Siegfried's avatar David Siegfried
Browse files

use innerHeight instead outerHeight, closes #1689

Closes #1689

Merge request studip/studip!1091
parent 1d48e606
No related branches found
No related tags found
No related merge requests found
...@@ -211,14 +211,14 @@ export default { ...@@ -211,14 +211,14 @@ export default {
initSize() { initSize() {
this.currentWidth = parseInt(this.width, 10); this.currentWidth = parseInt(this.width, 10);
this.currentHeight = parseInt(this.height, 10); this.currentHeight = parseInt(this.height, 10);
if (window.outerWidth > this.currentWidth) { if (window.innerWidth > this.currentWidth) {
this.left = (window.outerWidth - this.currentWidth) / 2; this.left = (window.innerWidth - this.currentWidth) / 2;
} else { } else {
this.left = 5; 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; this.footerHeight = this.$refs.footer.offsetHeight;
}, },
resizeHandler(data) { resizeHandler(data) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment