Notify background tab correctly
This commit is contained in:
parent
ccbc8855e9
commit
136186f05f
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user