[Pkg-mozext-commits] [nostalgy] 31/252: *** empty log message ***
David Prévot
taffit at moszumanska.debian.org
Tue Jun 14 15:24:39 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository nostalgy.
commit f16788226986c813c1fe22f6ab40be030da07910
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date: Sun Sep 3 10:58:43 2006 +0000
*** empty log message ***
---
CHANGES | 5 +++++
content/messageOverlay.xul | 17 +----------------
content/nostalgy.js | 16 ++++++++++++++--
content/thunderbirdOverlay.xul | 4 ++--
4 files changed, 22 insertions(+), 20 deletions(-)
diff --git a/CHANGES b/CHANGES
index dde29e2..b9c7eef 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,8 @@
+0.1.7
+ - limit the width of the nostalgy label (which displays the default
+ folder) to avoid horizontal overflow of TB's window
+ - hide the nostalgy input box when blurred (does not work very well)
+
0.1.6
- add the rule system (quick selection of a default folder for messages)
- add the Ctrl-Left/Ctrl-Right keys (scroll the message while the
diff --git a/content/messageOverlay.xul b/content/messageOverlay.xul
index 0f2a6bc..fec46e4 100644
--- a/content/messageOverlay.xul
+++ b/content/messageOverlay.xul
@@ -43,24 +43,9 @@
<statusbar id="statusTextBox">
<statusbarpanel insertbefore="statusText" >
- <label id="statusbar-nostalgy-label"
+ <label id="statusbar-nostalgy-label" crop="center" flex="1"
value="&nostalgy.memomessage;"/>
</statusbarpanel>
</statusbar>
-<!-- <statusbar id="status-bar">
- <label id="statusbar-nostalgy-label"
- position="1"
- value="&nostalgy.memomessage;"/>
-
- <textbox id="statusbar-nostalgy" type="autocomplete" tabScrolling="true"
- ontextcommand="NostalgyRunCommand();"
- ontextrevert="NostalgyHide();"
- position="2"
- maxlength="160" flex="3"
- maxrows="15" crop="end"
- style="width: 300px;"/>
- </statusbar>
--->
-
</overlay>
diff --git a/content/nostalgy.js b/content/nostalgy.js
index 444e920..916063b 100644
--- a/content/nostalgy.js
+++ b/content/nostalgy.js
@@ -102,6 +102,10 @@ var last_folder_server = new Array();
var last_folder = null;
var gsuggest_folder = null;
+function onNostalgyResize() {
+ nostalgy_label.parentNode.maxWidth = document.width * 6 / 10;
+}
+
function onNostalgyLoad() {
nostalgy_folderBox = gEBI("nostalgy-folderbox");
nostalgy_statusBar = gEBI("nostalgy-statusbar");
@@ -134,6 +138,15 @@ function onNostalgyLoad() {
ev.stopPropagation();
}
}, true);
+
+ window.addEventListener("mousedown", NostalgyHideIfBlurred, false);
+ // Don't know why, but the blur event does not seem to be fired properly...
+}
+
+function NostalgyHideIfBlurred() {
+ if ((!nostalgy_statusBar.hidden) &&
+ (document.commandDispatcher.focusedElement != nostalgy_folderBox))
+ { NostalgyHide(); }
}
function NostalgyHide() {
@@ -147,8 +160,6 @@ function NostalgyHide() {
NostalgyDefLabel();
}
-
-
function NostalgyDefLabel() {
gsuggest_folder = NostalgySuggest();
if (gsuggest_folder) {
@@ -318,6 +329,7 @@ function NostalgySelectSearch(ev) {
}
window.addEventListener("load", onNostalgyLoad, false);
+window.addEventListener("resize", onNostalgyResize, false);
/* if (!in_message_window) {
window.addEventListener("keypress", onNostalgyKeyPress, false);
} */
diff --git a/content/thunderbirdOverlay.xul b/content/thunderbirdOverlay.xul
index 2270d9f..abb3f84 100644
--- a/content/thunderbirdOverlay.xul
+++ b/content/thunderbirdOverlay.xul
@@ -61,8 +61,8 @@
<statusbar id="statusTextBox">
- <statusbarpanel insertbefore="statusText" >
- <label id="statusbar-nostalgy-label"
+ <statusbarpanel insertbefore="statusText">
+ <label id="statusbar-nostalgy-label" crop="center" flex="1"
value="&nostalgy.memo;"/>
</statusbarpanel>
</statusbar>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/nostalgy.git
More information about the Pkg-mozext-commits
mailing list