Opened 8 years ago

Closed 8 years ago

#7880 closed bug (invalid)

BColumnListView::RowAt(BPoint) returns wrong Row?

Reported by: cipri Owned by: axeld
Priority: normal Milestone: R1
Component: Kits/Interface Kit Version: R1/alpha3
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

I did the following. inherited a listview from bcolumnlistview and enableing PointerEvents. The listview has titled columns. In the hook MouseDown I was calling RowAt(where). The result was, that I was returned a wrong Row. To solve that problem, the method RowAt(BPoint) must subtract the hight of the Title. RowAt doesnt take in account the offset in the case of titled columns.

Change History (1)

comment:1 Changed 8 years ago by anevilyak

Resolution: invalid
Status: newclosed

That class is not part of Haiku's public API for quite a number of reasons, and will be replaced in the future. Please don't rely on it.

Note: See TracTickets for help on using tickets.