1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-13 20:28:44 +01: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;

View File

@ -603,6 +603,14 @@ ul.linklist.bulletin > li.no-bulletin:before {
text-align: left;
}
.dropdown-contents > li {
padding-right: 15px;
}
.dropdown-nonscroll > li {
padding-right: 0;
}
.dropdown li:first-child, .dropdown li.separator + li, .dropdown li li {
border-top: 0;
}