projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eda60b1
)
Roo/ContentPanel.js
author
Alan Knowles
<alan@akkbhome.com>
Tue, 28 Dec 2010 13:38:40 +0000
(21:38 +0800)
committer
Alan Knowles
<alan@akkbhome.com>
Tue, 28 Dec 2010 13:38:40 +0000
(21:38 +0800)
Roo/ContentPanel.js
patch
|
blob
|
history
diff --git
a/Roo/ContentPanel.js
b/Roo/ContentPanel.js
index
2df80c8
..
6db1a52
100644
(file)
--- a/
Roo/ContentPanel.js
+++ b/
Roo/ContentPanel.js
@@
-110,7
+110,10
@@
Roo.ContentPanel = function(el, config, content){
if(this.autoScroll){
this.resizeEl.setStyle("overflow", "auto");
} else {
- this.el.on('scroll', this.el.scrollTop);
+ // fix randome scrolling
+ this.el.on('scroll', function() {
+ this.el.scrollTo('top',0);
+ });
}
content = content || this.content;
if(content){