From a08390c84a1d370df835554bc217a22ac641aec4 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 25 Jun 2018 12:22:44 +0200 Subject: [PATCH] Use device width for width calculation of widget --- src/pretix/static/pretixpresale/js/widget/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index 2dff90b8b..f8bafa6aa 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -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()); } };