mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/12013] Prevent the dropdown scrollbar from overlapping the content.
PHPBB3-12013
This commit is contained in:
parent
3bfc9ccbc7
commit
45458b240b
2 changed files with 12 additions and 0 deletions
|
@ -1296,6 +1296,10 @@ phpbb.toggleDropdown = function() {
|
||||||
else if ((offset + width + 2) > windowWidth) {
|
else if ((offset + width + 2) > windowWidth) {
|
||||||
$this.css('margin-left', (windowWidth - offset - width - 2) + 'px');
|
$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;
|
var freeSpace = parent.offset().left - 4;
|
||||||
|
|
||||||
|
|
|
@ -603,6 +603,14 @@ ul.linklist.bulletin > li.no-bulletin:before {
|
||||||
text-align: left;
|
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 {
|
.dropdown li:first-child, .dropdown li.separator + li, .dropdown li li {
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue