1252 if (formRect.IsEmpty()) |
1252 if (formRect.IsEmpty()) |
1253 { |
1253 { |
1254 return; |
1254 return; |
1255 } |
1255 } |
1256 |
1256 |
|
1257 TInt currentItem = KErrNotFound; |
|
1258 #ifdef RD_JAVA_S60_RELEASE_9_2 |
|
1259 // First check if top visible item was set (only in case that |
|
1260 // ChoiceGroup was panned and now it is partially visible and |
|
1261 // got highlight by starting HW keys interaction). |
|
1262 // If item was set, do not scroll at all. |
|
1263 currentItem = iListBox->TopVisibleItemIndex(); |
|
1264 if (currentItem == KErrNotFound) |
|
1265 { |
|
1266 // Top visible item was not set, i.e. ChoiceGroup already |
|
1267 // have highlight or it is fully visible or it is fully invisible. |
|
1268 currentItem = iListBox->CurrentItemIndex(); |
|
1269 } |
|
1270 #else |
|
1271 currentItem = iListBox->CurrentItemIndex(); |
|
1272 #endif // RD_JAVA_S60_RELEASE_9_2 |
|
1273 |
1257 // Calculate current listbox item rect |
1274 // Calculate current listbox item rect |
1258 TInt currentItem = iListBox->CurrentItemIndex(); |
|
1259 TRect lbitemRect = TRect( |
1275 TRect lbitemRect = TRect( |
1260 iListBox->View()->ItemPos(currentItem), |
1276 iListBox->View()->ItemPos(currentItem), |
1261 iListBox->View()->ItemSize(currentItem)); |
1277 iListBox->View()->ItemSize(currentItem)); |
1262 |
1278 |
1263 // CG item rect is also needed |
1279 // CG item rect is also needed |