Skip to content

Commit

Permalink
fix: new tab button Location (closes #325)
Browse files Browse the repository at this point in the history
  • Loading branch information
onemen committed Sep 8, 2024
1 parent 3d210bf commit 87bf524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions addon/chrome/content/tab/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,7 @@ Tabmix.tabsUtils = {
};

Tabmix.afterTabsButtonsWidth = [35];
Tabmix.tabsNewtabButton =
this.tabBar.getElementsByAttribute("command", "cmd_newNavigatorTab")[0];
Tabmix.tabsNewtabButton = document.getElementById("tabs-newtab-button");
this._show_newtabbutton = "aftertabs";

let attr = ["notpinned", "autoreload", "protected", "locked"].filter(att => {
Expand Down
3 changes: 1 addition & 2 deletions addon/chrome/content/tabmix.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ Tabmix.getAfterTabsButtonsWidth = function TMP_getAfterTabsButtonsWidth() {
tabBar.collapsed = false;
}
// save tabsNewtabButton width
this.tabsNewtabButton =
tabBar.getElementsByAttribute("command", "cmd_newNavigatorTab")[0];
this.tabsNewtabButton = document.getElementById("tabs-newtab-button");
this.tabsNewtabButton.setAttribute("force-display", true);
let openNewTabRect = Tabmix.getBoundsWithoutFlushing(this.tabsNewtabButton);
let style = window.getComputedStyle(this.tabsNewtabButton);
Expand Down

0 comments on commit 87bf524

Please sign in to comment.