Issue Bug Closed

#82732Context menu is not completely visible when foldertree of filelist has a scrollbar

Wittkiel Gruppe 10/11/17, 12:00 updated 10/02/18, 10:55

Description

If you rightclick on a folder at the bottom of the filelist-foldertree the context menu is opening but is not completely visible.

bug-context-menu-positioning.png

bug-context-menu-positioning-console.png

The error seems to be here sysext/backend/Resources/Public/JavaScript/ContextMenu.js:

var dimsWindow = {
    width: $(document).width() - 20, // saving margin for scrollbars
    height: $(document).height()
};

I think in “dimsWindow” should be the values of $(window) instead of $(document), because if there is a scrollbar, the context menu is always shown at the bottom.

http://api.jquery.com/height/

// Returns height of browser viewport
$( window ).height();

// Returns height of HTML document
$( document ).height();

TYPO3: 8.7.7
Browser: Firefox 56
OS: Windows 8.1

Reviews 2