PDA

View Full Version : Indexbar Scrolling issue



intera
23 Mar 2011, 1:19 AM
When having a Ext.List with indexBar: true, sometimes, the indexbar does not work until I scrolled the at least a pixel manually.

Tested wirh Chrome, iPhone 3+4

markguinn
31 Mar 2011, 4:04 AM
I had the same issue. For me it was cause because the list was created with an empty store, and then the store was populated after the fact. Seemingly some internal height value wasn't getting populated after the store data changed UNTIL you scroll or the size/orientation changes. For me, it worked to just do the following after the new data was loaded in:



list.refresh();
var h = list.getHeight();
list.setHeight(h-1);
list.setHeight(h);


Your mileage may vary. All the best,
Mark

Hanni Sullivan
12 Jul 2011, 2:03 AM
@markguinn:

Thanks for posting your solution.

nshrestha
9 Aug 2011, 2:29 PM
@markguinn: I had the same issue and tried your solution but it did not work, what it do is point me to the right direction.

This is what i did, this needs to be done after the list is done loading.



if (list.scroller)
{
if (list.scroller.offsetBoundary.top == 0)
{
list.scroller.updateBoundary();
}
}


Might be helpful to someone
Thanks