Fixed tab overlflow changing the height of the web view

This commit is contained in:
mr. M
2024-10-19 18:41:31 +02:00
parent 36104652cd
commit 83b077d5f3
3 changed files with 5 additions and 3 deletions

View File

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