fix list-box scrollbar when using horizontal labels (PR 8661)

svn: r6217
This commit is contained in:
Matthew Flatt 2007-05-12 23:54:43 +00:00
parent 44fab79324
commit e569fae266

View File

@ -274,8 +274,12 @@ void wxListBox::OnEvent(wxMouseEvent *event)
SetCurrentDC();
// For scroll bars:
{
int cw, ch;
GetClientSize(&cw, &ch);
startPt0.v = startV;
startPt0.h = startH - (cWindowWidth - 16);
startPt0.h = startH - (cw - 16);
}
startPt.v = startV + SetOriginY; // port c.s.
startPt.h = startH + SetOriginX;