From d0556bc114935d9120a1a3fc804718a04a0d4b16 Mon Sep 17 00:00:00 2001 From: Gianluigi Martino <gmartino27@gmail.com> Date: Fri, 13 Oct 2017 08:31:56 +0200 Subject: [PATCH] [BUGFIX] Context menu is not completely visible in filelist with scrollbar If the foldertree in filelist is to long, the rightclick context menu on the bottom of the window is not completly visible. With this patch the position of the menu is calculated based on the windows width and height and so completly visible. Resolves: #82732 Releases: master, 8.7 Change-Id: Ied9204371491059efda61143e9ca9c2f3c8a9b9d Reviewed-on: https://review.typo3.org/54390 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Wittkiel Gruppe <ts@wittkiel-gruppe.com> Tested-by: Wittkiel Gruppe <ts@wittkiel-gruppe.com> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Frank Naegler <frank.naegler@typo3.org> Tested-by: Frank Naegler <frank.naegler@typo3.org> --- .../sysext/backend/Resources/Public/JavaScript/ContextMenu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/ContextMenu.js b/typo3/sysext/backend/Resources/Public/JavaScript/ContextMenu.js index 057c275ef0f8..e1ca31e9511e 100644 --- a/typo3/sysext/backend/Resources/Public/JavaScript/ContextMenu.js +++ b/typo3/sysext/backend/Resources/Public/JavaScript/ContextMenu.js @@ -165,8 +165,8 @@ define(['jquery', 'TYPO3/CMS/Backend/ContextMenuActions'], function ($, ContextM var x = this.mousePos.X; var y = this.mousePos.Y; var dimsWindow = { - width: $(document).width() - 20, // saving margin for scrollbars - height: $(document).height() + width: $(window).width() - 20, // saving margin for scrollbars + height: $(window).height() }; // dimensions for the context menu -- GitLab