I need to show the scroll bar as soon as the shape is wider than the container. I set the autoScroll: true property in the container, but it does not work. In any case, to get the result I need?
Here is a working example
http://jsfiddle.net/mQC3B/2/
Code
Ext.create('Ext.container.Viewport', { layout: { header: false, type: 'border', padding: 0 }, items: [{ region: 'north', padding: '0 150 0 150', height: 36, html: 'header' }, { id:'mainPanelContainer', autoScroll: true, padding: '0 150 0 150', region: 'center', items:[ { xtype:'form', items:[{ xtype: 'container', flex: 1, layout: 'anchor', items: [{ xtype: 'textfield', fieldLabel: 'Name', name: 'Name' }, { xtype: 'textfield', fieldLabel: 'Name', name: 'Name' }, { anchor: '95%', xtype: 'htmleditor', fieldLabel: 'Popis', name: 'Description', height: 240, width: 450 }] }, { xtype: 'container', flex: 1, layout: 'anchor', items: [{ xtype: 'textfield', fieldLabel: 'Name', name: 'Name' }, { xtype: 'textfield', fieldLabel: 'Name', name: 'Name' }, { xtype: 'textfield', fieldLabel: 'Name', name: 'Name' }, { xtype: 'container', margin: '0 0 8 0', layout: 'hbox', items: [{ xtype: 'textfield', fieldLabel: 'Name', name: 'Name' }, { xtype: 'textfield', fieldLabel: 'Name', name: 'Name' }] }, { xtype: 'textfield', fieldLabel: 'Name', name: 'Name' }] }] } ] }, { region: 'south', height: 25, padding: '0 150 0 150', html: 'Copyright © 2013' }] });
EDIT
After adding the layout: "fit" to mainPanelContainer, a scroll bar appears, but it is impossible to scroll to the hidden right side of the form.
http://jsfiddle.net/mQC3B/3/