Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8542475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:04:48+00:00 2026-06-11T12:04:48+00:00

In my application i have many windows and panels and im using custom scrollbars.

  • 0

In my application i have many windows and panels and im using custom scrollbars. So for each window or panel i need to specify afterlayout listener to get the custom scroll bar

            listeners:{
    afterlayout: function(c){
    fleXenv.fleXcrollMain(c.body.id);
      }
    }

So what im looking for is i need to add this listener globally for windows and panels so that by adding this code one time should effect on all windows or panels.

Is there any way to do this

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:04:50+00:00Added an answer on June 11, 2026 at 12:04 pm

    It seems that your custom scrollbar is used in all Windows and Panels of your application. Hence there is nothing wrong with extending the core ExtJs classes IMHO.
    Implement it as a ‘feature’ that is enabled by default but – for the rare cases where you don’t want the scrollbar – can be disabled.

    Ext.define('patch.Ext.panel.Panel-scrollbar', {
        override: 'Ext.panel.Panel',
    
        enableCustomScrollbar: true,
    
        afterLayout: function() {
            this.fixScrollbar();
            this.callParent(arguments);
        },
    
        fixScrollbar: function() {
            if(this.enableCustomScrollbar) {
                // your code
            }
        }
    });
    

    Load with Ext.require('patch.Ext.panel.Panel-scrollbar') or add it as dependency (requires) to your application definition.

    Ext.window.Window extends from Ext.panel.Panel, hence it will inherit the behavior.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im using c# .net windows form application. I have many databases created using sql
Im using c# .net windows application form. I have created many databases with many
i have a System.Windows.Forms.Panel control in a windows application that has many labels and
In my web application we have many users.I want to set permission for each
I am creating a web application that will have many users. Each user has
I have many domain classes in my application an for Audit logging I need
I have a Java application using the Substance LookAndFeel with Windows as the the
I have an Application (written in C/C++) thats communicating over UDP between many Windows
I have to use many different images into my windows phone application. Although I
Windows Form Application vb net I have many container files on a hard drive,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.