From fae299847ea0d10da63fc5e7c86174d8e1eb5c2b Mon Sep 17 00:00:00 2001 From: kindlm Date: Tue, 25 Mar 2025 15:56:55 +0100 Subject: [PATCH] Messaging-Fenster scrollt automatisch nach oben --- content/messages.js.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/content/messages.js.php b/content/messages.js.php index 3e72748ec..5afc6162f 100644 --- a/content/messages.js.php +++ b/content/messages.js.php @@ -175,7 +175,22 @@ function MessagesIFrameSetHTML(val) } //Value setzen if(val!='') + { editor.contentDocument.execCommand("inserthtml", false, val); + + setTimeout(function() + { + scrollToTop(); + }, 100); + } +} + +function scrollToTop() +{ + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); + editor = document.getElementById('message-wysiwyg'); + + editor.contentWindow.scrollTo(0, 0); } function MessageIFrameInit()