Fixed height changing when having too many tabs

This commit is contained in:
mr. M
2024-10-31 09:15:20 +01:00
parent b30a65015d
commit 3ba221831d

View File

@@ -73,7 +73,7 @@
tabs.style.maxHeight = '0px'; // reset to 0
const toolbarRect = toolbarItems.getBoundingClientRect();
// -5 for the controls padding
let totalHeight = toolbarRect.height - (this.contentElementSeparation) - 5;
let totalHeight = toolbarRect.height - (this.contentElementSeparation) - 10;
// remove the height from other elements that aren't hidden
const otherElements = document.querySelectorAll('#tabbrowser-tabs > *:not([hidden="true"])');
for (let tab of otherElements) {