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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user