[Pkg-mozext-commits] [tabmixplus] 02/48: Pale Moon 27 have different tab margin between normal windows and maximized windows (see changeset e6f2a6e02e47)
David Prévot
taffit at moszumanska.debian.org
Sun Aug 20 03:14:34 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit e6dc4cfe3675a210c04a8ab84bc00fc04bb7d2f5
Author: onemen <tabmix.onemen at gmail.com>
Date: Fri Jun 30 14:45:35 2017 +0300
Pale Moon 27 have different tab margin between normal windows and maximized windows (see changeset e6f2a6e02e47)
---
chrome/content/tab/tab.js | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 923c0ff..dae3705 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -394,18 +394,18 @@ var TabmixTabbar = {
document.getElementById("TabsToolbar").dispatchEvent(event);
},
+ _waitAfterMaximized: false,
_handleResize: function TMP__handleResize() {
var tabBar = gBrowser.tabContainer;
if (this.isMultiRow) {
- if (TabmixSvc.isPaleMoon && Tabmix.isVersion(0, 270)) {
- TabmixTabbar.setHeight(this.visibleRows);
- }
this.setFirstTabInRow();
if (tabBar.mTabstrip.orient != "vertical") {
tabBar.mTabstrip._enterVerticalMode();
this.updateBeforeAndAfter();
} else {
+ this._waitAfterMaximized = window.windowState == window.STATE_MAXIMIZED;
setTimeout(() => {
+ this._waitAfterMaximized = false;
Tabmix.tabsUtils.updateVerticalTabStrip();
this.updateBeforeAndAfter();
}, 0);
@@ -817,6 +817,7 @@ Tabmix.tabsUtils = {
updateVerticalTabStrip(aReset) {
if (Tabmix.extensions.verticalTabBar || gInPrintPreviewMode ||
this.inDOMFullscreen || FullScreen._isChromeCollapsed ||
+ TabmixTabbar._waitAfterMaximized ||
!this.tabBar.visible && TabmixTabbar.visibleRows == 1)
return null;
if (this._inUpdateVerticalTabStrip)
@@ -1901,6 +1902,16 @@ gTMPprefObserver = {
if (TabmixSvc.isPaleMoon && Tabmix.isVersion(0, 270)) {
this.insertRule('#tabmixScrollBox{ margin-top: -1px;}');
+ newRule = `#main-window[sizemode="maximized"][tabsontop=true] .tabbrowser-tabs[multibar] > .tabbrowser-tab,
+ #main-window[sizemode="fullscreen"][tabsontop=true] .tabbrowser-tabs[multibar] > .tabbrowser-tab {
+ margin-top: -1px;
+ }`;
+ this.insertRule(newRule);
+ newRule = `#main-window[sizemode="maximized"][tabsontop=true] .tabbrowser-tabs[multibar],
+ #main-window[sizemode="fullscreen"][tabsontop=true] .tabbrowser-tabs[multibar] {
+ padding-top: 1px;
+ }`;
+ this.insertRule(newRule);
}
// we don't show icons on menu on Mac OS X
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list