application/src/PodcastListView.cpp
changeset 4 be243543a361
parent 2 29cda98b007e
child 13 f58e3c482bd9
equal deleted inserted replaced
3:3326ac3c89fa 4:be243543a361
   353 
   353 
   354 
   354 
   355 void CPodcastListView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */)
   355 void CPodcastListView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */)
   356 {
   356 {
   357 	DP("CPodcastListView::HandleLongTapEventL BEGIN");
   357 	DP("CPodcastListView::HandleLongTapEventL BEGIN");
   358     if(iStylusPopupMenu)
   358 	
       
   359 	const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1
       
   360 	TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems(
       
   361 			iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight;
       
   362 
       
   363     if(iStylusPopupMenu && aPenEventLocation.iY < lbHeight)
   359     {
   364     {
   360 		iStylusPopupMenu->ShowMenu();
   365 		iStylusPopupMenu->ShowMenu();
   361 		iStylusPopupMenu->SetPosition(aPenEventLocation);
   366 		iStylusPopupMenu->SetPosition(aPenEventLocation);
   362     }
   367     }
   363 	DP("CPodcastListView::HandleLongTapEventL END");
   368 	DP("CPodcastListView::HandleLongTapEventL END");