longracer
13 Jul 2007, 3:02 AM
In my online chat application, I have added multiple ContentPanels in one layout region. I want every panel has its own scrollHeight so that when one is activated it can automatically scroll to its bottom by set scrollTop to scrollHeight,like this:
var scrollDiv = Ext.get('panel1').dom.parentNode;
scrollDiv.scrollTop = scrollDiv.scrollHeight;
but I found if one of these panel's scrollHeight increase, others' also be increase and their bottom lower than actual content in the panel.
I guess maybe because they all have the same parentNode and share same scrollHeight. Can this problem be solved? Thx.
var scrollDiv = Ext.get('panel1').dom.parentNode;
scrollDiv.scrollTop = scrollDiv.scrollHeight;
but I found if one of these panel's scrollHeight increase, others' also be increase and their bottom lower than actual content in the panel.
I guess maybe because they all have the same parentNode and share same scrollHeight. Can this problem be solved? Thx.