Notify background tab correctly

This commit is contained in:
Piro / YUKI Hiroshi 2016-09-05 23:53:20 +09:00
parent ccbc8855e9
commit 136186f05f

View File

@ -526,6 +526,7 @@ var TreeStyleTabWindowHelper = {
treeStyleTab.scrollToNewTabMode == 0 || treeStyleTab.scrollToNewTabMode == 0 ||
treeStyleTab.shouldCancelEnsureElementIsVisible()) treeStyleTab.shouldCancelEnsureElementIsVisible())
return; return;
}
let scrollRect = this.mTabstrip.scrollClientRect; let scrollRect = this.mTabstrip.scrollClientRect;
let tabRect = aTab.getBoundingClientRect(); let tabRect = aTab.getBoundingClientRect();
@ -538,7 +539,7 @@ var TreeStyleTabWindowHelper = {
tabRect[treeStyleTab.startProp] = tabRect.start; tabRect[treeStyleTab.startProp] = tabRect.start;
tabRect[treeStyleTab.endProp] = tabRect.end; tabRect[treeStyleTab.endProp] = tabRect.end;
if (tabRect[treeStyleTab.startProp] >= scrollRect[treeStyleTab.startProp] || if (tabRect[treeStyleTab.startProp] >= scrollRect[treeStyleTab.startProp] &&
tabRect[treeStyleTab.endProp] <= scrollRect[treeStyleTab.endProp]) tabRect[treeStyleTab.endProp] <= scrollRect[treeStyleTab.endProp])
return; return;