Skip to content

Commit

Permalink
[TreeStyleTab] lower the position of popup for pinned tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
gomita committed Jul 15, 2013
1 parent a8e92a1 commit 34f17e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chrome/content/tabscope/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@ var TabScope = {
case 3: y = tab.screenY; x = tab.screenX - popupWidth; break;
case 4: y = tab.screenY; x = tab.screenX + tab.width; break;
}
// [TreeStyleTab] lower the position of popup for pinned tab
if ("TreeStyleTabService" in window &&
gBrowser.mTabContainer.orient == "vertical" && this._tab.pinned)
y += tab.height / 2;
// correct position to avoid popup auto-position
x = Math.max(x, this._availRect.left);
y = Math.max(y, this._availRect.top);
Expand Down

0 comments on commit 34f17e9

Please sign in to comment.