equal
deleted
inserted
replaced
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"); |