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:
parent
3bfc9ccbc7
commit
45458b240b
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user