diff --git a/modules/utils.js b/modules/utils.js index dae000ff..24d02348 100644 --- a/modules/utils.js +++ b/modules/utils.js @@ -519,6 +519,9 @@ var TreeStyleTabUtils = { var scrollbox = aTabBrowser.tabContainer.mTabstrip._scrollbox; var d = scrollbox.ownerDocument; + // We have to calculate the width of the scroll bar indirectly + // based on the width of the container and the scrollable contents, + // because the scrollbar is not accessible via public APIs. var scrollbarSize = this.lastOriginalScrollbarSize; if (scrollbarSize == 0) { let nodes = d.getAnonymousNodes(scrollbox);