PDA

View Full Version : scrolling options



tcurdt
22 Jan 2012, 10:55 AM
When setting up a Ext.Panel... How come



scroll: 'horizontal',


behaves so very different from


scroll: {
horizontal: true
},


Shouldn't that be the same thing?

mitchellsimoens
23 Jan 2012, 9:02 AM
Try using direction instead of horizontal. In Ext.Component#setScrollable, it takes the string and makes a config object:


Ext.isObject(config) ? config: {}, {
// momentum: true,
direction: direction
});