Project

General

Profile

Actions

Bug #82732

closed

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

Added by Wittkiel Gruppe about 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2017-10-11
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

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

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


Files

Actions

Also available in: Atom PDF