[Pkg-mozext-commits] [firebug] 05/28: do not loose console scrollpostion when switching tabs
David Prévot
taffit at moszumanska.debian.org
Mon Mar 31 22:46:23 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag firebug-1.10.3
in repository firebug.
commit 0e0de76f486dc40d559863f68436f425a65d5d25
Author: nightwing <amirjanyan at gmail.com>
Date: Fri Aug 3 00:34:09 2012 +0400
do not loose console scrollpostion when switching tabs
---
extension/content/firebug/console/consolePanel.js | 4 ++--
extension/content/firebug/firebug.js | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/extension/content/firebug/console/consolePanel.js b/extension/content/firebug/console/consolePanel.js
index 5189047..1bc5338 100644
--- a/extension/content/firebug/console/consolePanel.js
+++ b/extension/content/firebug/console/consolePanel.js
@@ -155,12 +155,12 @@ Firebug.ConsolePanel.prototype = Obj.extend(Firebug.ActivablePanel,
if (state)
wasScrolledToBottom = state.wasScrolledToBottom;
- if (typeof(wasScrolledToBottom) == "boolean")
+ if (typeof wasScrolledToBottom == "boolean")
{
this.wasScrolledToBottom = wasScrolledToBottom;
delete state.wasScrolledToBottom;
}
- else
+ else if (typeof this.wasScrolledToBottom != "boolean")
{
// If the previous state doesn't says where to scroll,
// scroll to the bottom by default.
diff --git a/extension/content/firebug/firebug.js b/extension/content/firebug/firebug.js
index 708790f..09c2ba8 100644
--- a/extension/content/firebug/firebug.js
+++ b/extension/content/firebug/firebug.js
@@ -1719,9 +1719,11 @@ Firebug.Panel = Obj.extend(new Firebug.Listener(),
if (this.panelNode)
{
+ var scrollTop = this.panelNode.scrollTop;
this.panelNode = doc.adoptNode(this.panelNode, true);
this.panelNode.ownerPanel = this;
doc.body.appendChild(this.panelNode);
+ this.panelNode.scrollTop = scrollTop;
}
},
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
More information about the Pkg-mozext-commits
mailing list