Bug 1913279 - Fix vertical tabs issue with selected tab not scrolling on overflow r=tabbrowser-reviewers,desktop-theme-reviewers,dao

* Remove condition in tabs.js that prohibited overflow attribute being added for vertical orientation
* Remove redundant overflow-y:auto for #tabbrowser-arrowscrollbox and set a min-height for vertical tabs

Differential Revision: https://phabricator.services.mozilla.com/D221133
This commit is contained in:
Sarah Clements
2024-09-09 13:49:26 +00:00
parent 11f011d82e
commit 00d0b28ceb
3 changed files with 8 additions and 9 deletions

View File

@@ -1148,13 +1148,8 @@
}
on_overflow(event) {
// Ignore overflow events:
// - from nested scrollable elements
// - for vertical orientation
if (
event.target != this.arrowScrollbox ||
event.originalTarget.getAttribute("orient") == "vertical"
) {
// Ignore overflow events from nested scrollable elements
if (event.target != this.arrowScrollbox) {
return;
}