application/src/PodcastShowsView.cpp
changeset 4 be243543a361
parent 3 3326ac3c89fa
child 5 ba42cd6670b8
--- a/application/src/PodcastShowsView.cpp	Thu Feb 25 15:23:53 2010 +0000
+++ b/application/src/PodcastShowsView.cpp	Thu Feb 25 16:02:42 2010 +0000
@@ -796,7 +796,11 @@
 {
 	DP("CPodcastShowsView::HandleLongTapEventL BEGIN");
 	
-    if(iStylusPopupMenu)
+	const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1
+	TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems(
+			iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight;
+
+    if(iStylusPopupMenu && aPenEventLocation.iY < lbHeight)
     {
 		TInt index = iListContainer->Listbox()->CurrentItemIndex();
 		if (index >= 0 && index < iPodcastModel.ActiveShowList().Count())