changeset 30 | 80e4d18b72f5 |
parent 28 | b7da29130b0e |
--- a/src/hbwidgets/itemviews/hbdatepickerview_p.cpp Fri Sep 17 08:32:10 2010 +0300 +++ b/src/hbwidgets/itemviews/hbdatepickerview_p.cpp Mon Oct 04 00:38:12 2010 +0300 @@ -561,8 +561,17 @@ newIndex = 0; } } - break; + else if(newIndex > 0) { + //the item is in buffer and the looping is not needed + if(!((HbDatePickerContainer*)(d->mContainer))->isLoopingNeeded()){ + newIndex = 0; + } + } + + //no change newIndex = 0 + break; } + case EnsureVisible: case PositionAtTop: case PositionAtBottom: