1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-05 01:15:46 +02:00

[ticket/12013] Prevent the dropdown scrollbar from overlapping the content.

PHPBB3-12013
This commit is contained in:
Cesar G
2014-05-31 17:00:18 -07:00
parent 3bfc9ccbc7
commit 45458b240b
2 changed files with 12 additions and 0 deletions

View File

@ -1296,6 +1296,10 @@ phpbb.toggleDropdown = function() {
else if ((offset + width + 2) > windowWidth) {
$this.css('margin-left', (windowWidth - offset - width - 2) + 'px');
}
// Check whether the vertical scrollbar is present.
$this.toggleClass('dropdown-nonscroll', this.scrollHeight === $this.innerHeight());
});
var freeSpace = parent.offset().left - 4;