fix list-box scrollbar when using horizontal labels (PR 8661)
svn: r6217
This commit is contained in:
parent
44fab79324
commit
e569fae266
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user