[Phpfreechat-svn] SF.net SVN: phpfreechat: [605] trunk/themes/default/templates/pfcgui.js.tpl.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-06-16 20:26:34
|
Revision: 605 Author: kerphi Date: 2006-06-16 13:26:28 -0700 (Fri, 16 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=605&view=rev Log Message: ----------- Bug fix: the scrollbar was not correctly updated Modified Paths: -------------- trunk/themes/default/templates/pfcgui.js.tpl.php Modified: trunk/themes/default/templates/pfcgui.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcgui.js.tpl.php 2006-06-16 18:47:36 UTC (rev 604) +++ trunk/themes/default/templates/pfcgui.js.tpl.php 2006-06-16 20:26:28 UTC (rev 605) @@ -75,9 +75,13 @@ // show the new selected tab tab_to_show.style.display = 'block'; + + // restore the scroll pos + var content = this.getChatContentFromTabId(tabid); + content.scrollTop = this.scrollpos[tabid]; // scroll the new posted message - if (this.elttoscroll[tabid]) + if (this.elttoscroll[tabid].length > 0) { // on by one for (var i=0; i<this.elttoscroll[tabid].length; i++) @@ -85,10 +89,6 @@ this.elttoscroll[tabid] = Array(); } - // restore the scroll pos - var content = this.getChatContentFromTabId(tabid); - content.scrollTop = this.scrollpos[tabid]; - this.unnotifyTab(tabid); }, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |