From a64718304a8e0f7e7efb63f8afa7b05412536592 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 20 Jul 2021 13:09:14 +0800 Subject: [PATCH] Roo/bootstrap/panel/Content.js --- Roo/bootstrap/panel/Content.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Roo/bootstrap/panel/Content.js b/Roo/bootstrap/panel/Content.js index b76bd8fa43..a8007151a3 100644 --- a/Roo/bootstrap/panel/Content.js +++ b/Roo/bootstrap/panel/Content.js @@ -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); } -- 2.39.2