Use device width for width calculation of widget

This commit is contained in:
Raphael Michel
2018-06-25 12:22:44 +02:00
parent 8b6eacecfe
commit a08390c84a

View File

@@ -648,7 +648,7 @@ var shared_root_computed = {
return form_target;
},
useIframe: function () {
return window.innerWidth >= 800 && (this.skip_ssl || site_is_secure());
return Math.min(screen.width, window.innerWidth) >= 800 && (this.skip_ssl || site_is_secure());
}
};