From 402d98757e97d61ed94b874bfcb04267dfdaf45d Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Fri, 15 Mar 2024 18:39:31 +0100 Subject: [PATCH] Optimized iframe-resizer handling --- public/js/grocy.js | 2 +- views/layout/default.blade.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/public/js/grocy.js b/public/js/grocy.js index 9aeb7ef9..fa3b4e00 100644 --- a/public/js/grocy.js +++ b/public/js/grocy.js @@ -562,7 +562,7 @@ $(window).on('resize', function() if (GetUriParam("embedded")) { - window.parent.iFrameResize({ "checkOrigin": false, "warningTimeout": 0 }, "iframe.embed-responsive"); + window.parent.iFrameResize({ "checkOrigin": false, "warningTimeout": 0, "minHeight": 700 }, "iframe.embed-responsive"); } function WindowMessageBag(message, payload = null) diff --git a/views/layout/default.blade.php b/views/layout/default.blade.php index 78cf7be0..b054d1d0 100644 --- a/views/layout/default.blade.php +++ b/views/layout/default.blade.php @@ -747,9 +747,8 @@ @endif @if($embedded) - @else - @endif +