Patch by Catalin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62680
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxVListBox::OnLeftDown(event);
{
wxVListBox::OnLeftDown(event);
- int item = HitTest(event.GetPosition());
+ int item = VirtualHitTest(event.GetPosition().y);
if (item != wxNOT_FOUND && GetApplyOnSelection())
ApplyStyle(item);
}
if (item != wxNOT_FOUND && GetApplyOnSelection())
ApplyStyle(item);
}
{
wxVListBox::OnLeftDown(event);
{
wxVListBox::OnLeftDown(event);
- int item = HitTest(event.GetPosition());
+ int item = VirtualHitTest(event.GetPosition().y);
if (item != wxNOT_FOUND && !GetApplyOnSelection())
ApplyStyle(item);
}
if (item != wxNOT_FOUND && !GetApplyOnSelection())
ApplyStyle(item);
}
{
// Move selection to cursor if it is inside the popup
{
// Move selection to cursor if it is inside the popup
- int itemHere = wxRichTextStyleListBox::HitTest(event.GetPosition());
+ int itemHere = wxRichTextStyleListBox::VirtualHitTest(event.GetPosition().y);
if ( itemHere >= 0 )
{
wxRichTextStyleListBox::SetSelection(itemHere);
if ( itemHere >= 0 )
{
wxRichTextStyleListBox::SetSelection(itemHere);