return;
}
- window.resizeTo(Math.min(screen.width, this.desktopWidth), Math.min(screen.height, this.desktopHeight));
+ let decorationHeight = window.outerHeight - window.innerHeight;
+ let decorationWidth = window.outerWidth - window.innerWidth;
+
+ window.resizeTo(Math.min(screen.width, this.desktopWidth+decorationWidth), Math.min(screen.height, this.desktopHeight + decorationHeight));
},
measureSizes: function () {
this.ww = $(window).width();
this.hh = $(window).height();
this.ratio = this.ww / this.hh;
- },
- resize: function () {
+ }, resize: function () {
this.measureSizes();