[Pkg-mozext-commits] [tabmixplus] 19/22: Pale Moon 27 have different tab margin between normal windows and maximized windows
David Prévot
taffit at moszumanska.debian.org
Sat Aug 5 15:28:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag 0.5.0.4pre.170625a1
in repository tabmixplus.
commit ad46f1d5715043f914911f557b9a8f8980632d54
Author: onemen <tabmix.onemen at gmail.com>
Date: Wed Jun 21 21:21:03 2017 +0300
Pale Moon 27 have different tab margin between normal windows and maximized windows
---
chrome/content/tab/scrollbox.xml | 2 +-
chrome/content/tab/tab.js | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/chrome/content/tab/scrollbox.xml b/chrome/content/tab/scrollbox.xml
index c63e3f5..7d013e9 100644
--- a/chrome/content/tab/scrollbox.xml
+++ b/chrome/content/tab/scrollbox.xml
@@ -336,7 +336,7 @@
let scrollPosition = this.scrollClientSize + this.scrollPosition;
if (this.orient == "vertical" && this.isMultiRow) {
const height = this.innerbox.getBoundingClientRect().height;
- if (scrollPosition == Math.round(height)) {
+ if (Math.round(height) - scrollPosition < 2) {
return true;
}
}
diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index b8b10d9..923c0ff 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -230,6 +230,12 @@ var TabmixTabbar = {
tabsPosition = "tabsontop";
else
tabsPosition = "tabsonbottom";
+
+ if (TabmixSvc.isPaleMoon && Tabmix.isVersion(0, 270)) {
+ let sizemode = (window.windowState == window.STATE_MAXIMIZED) ? "_maximized" : "_normal";
+ tabsPosition += sizemode;
+ }
+
return tabsPosition;
},
@@ -391,6 +397,9 @@ var TabmixTabbar = {
_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();
--
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