DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Extjs : Viewport - Adding Auto Scroll To Viewport Panel

  • submit to reddit
        How to add auto scroll to the center panel in a viewport layout

      new Ext.Viewport({
        forceFit: true,
        hideMode: "offsets",
        layout: "border",
        defaults: {autoScroll: true}, 
        items: [, 
            region: "north",
            contentEl: "north-panel-container-id",
            region: "center",
            contentEl: "center-panel-container-id",
            autoScroll: true