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 {
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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment