branch | CompilerCompatibility |
changeset 8 | b57f3d42a10e |
parent 4 | 8ca85d2f0db7 |
--- a/uifw/ganes/src/HgScrollBufferManager.cpp Mon Mar 08 21:43:43 2010 +0000 +++ b/uifw/ganes/src/HgScrollBufferManager.cpp Sun Mar 14 13:10:48 2010 +0000 @@ -166,6 +166,9 @@ // void CHgScrollBufferManager::SetPosition( TInt aIndex ) { + // If all the items fit in the buffer no need to move the buffer + if(iTotalCount <= iBufferSize) return; + TBool forceUpdate = EFalse; aIndex -= iBufferSize / 2; // normalize index to Buffer start