Describe why we don't use the actual width of the scrollbar directly

This commit is contained in:
Piro / YUKI Hiroshi 2016-02-13 01:52:30 +09:00
parent 6ca9f61115
commit 0c213398f4

View File

@ -519,6 +519,9 @@ var TreeStyleTabUtils = {
var scrollbox = aTabBrowser.tabContainer.mTabstrip._scrollbox; var scrollbox = aTabBrowser.tabContainer.mTabstrip._scrollbox;
var d = scrollbox.ownerDocument; 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; var scrollbarSize = this.lastOriginalScrollbarSize;
if (scrollbarSize == 0) { if (scrollbarSize == 0) {
let nodes = d.getAnonymousNodes(scrollbox); let nodes = d.getAnonymousNodes(scrollbox);