PDA

View Full Version : ExtJS 4.1 Nightly - Why is everything scrolling horizontally?



abcdef
2 May 2012, 4:16 PM
So I switched to ExtJS 4.1 nightly, and I noticed something very weird. Most of my components including toolbars and grids started scrolling horizontally. They scroll for a looong time before coming to a stop, and as I begin to scroll, the content begins to go left and disappear.

For example, my toolbar content started scrolling on 4.1. This is inside of a panel:



Ext.apply(me, {
dockedItems: [
{
xtype: 'toolbar',
dock: 'top',
height: 35,
layout: {
type: 'hbox',
pack: 'center'
},
items: [
{
xtype: 'container',
itemId: 'title',
html: 'Test'
}
]
}
]
});


Quickly wanted to see whether there is a known issue transitioning from 4.0.7?

abcdef
3 May 2012, 10:06 PM
Looks like it had something to do with autoScroll option. I played around with it, and it started behaving as expected. But the code from 4.0.7 did not work correctly. Anyway, problem solved.