Roo/bootstrap/panel/Content.js
authorAlan Knowles <alan@roojs.com>
Tue, 20 Jul 2021 05:09:14 +0000 (13:09 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 20 Jul 2021 05:09:14 +0000 (13:09 +0800)
Roo/bootstrap/panel/Content.js

index b76bd8f..a800715 100644 (file)
@@ -178,6 +178,7 @@ Roo.bootstrap.panel.Content = function( config){
          * @event scroll
          * Fires when this content is scrolled
          * @param {Roo.ContentPanel} this
+         * @param {Event} scrollEvent
          */
         "scroll" : true
         
@@ -190,6 +191,7 @@ Roo.bootstrap.panel.Content = function( config){
     
     if(this.autoScroll && !this.iframe){
         this.resizeEl.setStyle("overflow", "auto");
+        this.resizeEl.on('scroll', this.onScroll, this);
     } else {
         // fix randome scrolling
         //this.el.on('scroll', function() {
@@ -538,6 +540,12 @@ layout.addxtype({
     
     getChildContainer: function () {
         return this.getEl();
+    },
+    
+    
+    onScroll : function(e)
+    {
+        this.fireEvent('scroll', this, e);
     }