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 6948681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:51:17+00:00 2026-05-27T13:51:17+00:00

I need a scroll bar for ExtJs viewport, remark autoScroll=true doesn’t work as viewport

  • 0

I need a scroll bar for ExtJs viewport, remark autoScroll=true doesn’t work as viewport doesn’t support scrollbar. So maybe I need some outer container which will enable scrolling for whole viewport.

The sample code is as:

layoutPanel = new Ext.Viewport({
            layout: 'border',
            border: false,
            items: [
               new Ext.Panel({
                  id: 'mainCenterPanel',
                  region: 'center',
                  border: false,
                  layout: 'border',
                  items: [
                     new Ext.Panel({
                        id: 'configPanelContainer',
                        region: 'north',
                        border: false,
                        height: 50,
                        layout: 'border',
                        items: [
                           new Ext.Panel({
                              region: 'north',
                              border: false,
                              contentEl: 'filterBar',
                              bodyStyle: 'padding:20px 20px 20px 20px'
                           }),
                           new Ext.Panel({
                              region: 'center',
                              layout: 'fit',
                              border: false,
                              bodyStyle: 'padding:0px 20px 20px 20px',
                              items: heatMapConfigsPanel
                           })
                        ]
                     }),
                     new Ext.Panel({
                        id: 'heatmapChartPanel',
                        region: 'center',
                        border: false,
                        contentEl: 'analysisContainer',
                     })
                  ]
               })
            ]
         }); 
  • 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-05-27T13:51:18+00:00Added an answer on May 27, 2026 at 1:51 pm

    though viewport doesn’t support autoScroll=true, but we can still use it by manually setting width for child panel mainCenterPanel on re size, which forces viewport to show the content by scroll.

    layoutPanel = new Ext.Viewport({
                layout: 'border',
                border: false,
                autoScroll: true,
                items: [
                   <s:if test="%{isExternalView != true}">
                   new Ext.Panel({
                      region: 'north',
                      contentEl: 'bottomTbl',
                      border: false,
                      height: 37
                   }),
                   </s:if>
                   mainCenterPanel = new Ext.Panel({
                      id: 'mainCenterPanel',
                      region: 'center',
                      border: false,
                      layout: 'border',
                      bodyStyle: 'overflow-y: no;',
                      items: [
                         new Ext.Panel({
                            id: 'configPanelContainer',
                            region: 'north',
                            border: false,
                            height: 50,
                            layout: 'border',
                            items: [
                               new Ext.Panel({
                                  region: 'north',
                                  border: false,
                                  contentEl: 'filterBar',
                                  bodyStyle: 'padding:20px 20px 20px 20px'
                               }),
                               new Ext.Panel({
                                  region: 'center',
                                  layout: 'fit',
                                  border: false,
                                  bodyStyle: 'padding:0px 20px 20px 20px',
                                  <s:if test="%{!licenseWatermarkEmpty}">bodyCssClass: '${licenseWatermark}',</s:if>
                                  items: heatMapConfigsPanel
                               })
                            ]
                         }),
                         new Ext.Panel({
                            id: 'heatmapChartPanel',
                            region: 'center',
                            border: false,
                            contentEl: 'analysisContainer',
                            listeners: {
                               scope: this,
                               resize: function(p, adjWidth, adjHeight, rawWidth, rawHeight) {
                                  if ((p.getInnerWidth() < layoutPanelMinWidth) ||
                                     (p.getInnerHeight() < layoutPanelMinHeight)) {
                                     mainCenterPanel.setWidth(layoutPanelMinWidth);
                                     mainCenterPanel.setHeight(mainCenterPanel.getHeight() - 20);
                                     return;
                                  }
                               }
                            }
                         })
                      ]
                   })
                ]
             });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to open a page inside another page without the horizontal scroll bar
I've got a custom AS3 scrollbar that I need to modify. The scroll thumb
I need to update scroll bar position when I click on image and move
I need to change the scroll bar color in Firefox. Using CSS I am
My code involves standard Scroll Bar control and it happens that I need to
I need to place a scroll bar to the left of the contents in
? Need fixed Header Row from Vertical Scroll bar, because my GridView is very
I need to allow the vertical scrollbar in a multiselect listbox (VB6) however, when
For an overlay i need to know the height of a vertical scrollbar. What
I have a div in which I need a permanent vertical scrollbar. Sometimes the

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.