Ticket #3897: BColumnListView_vscrollbarfix.patch

File BColumnListView_vscrollbarfix.patch, 628 bytes (added by Duggan, 14 years ago)

Children were not being removed recursively, this patch fixes that and with it, this ticket.

  • src/kits/interface/ColumnListView.cpp

     
    25112511    }
    25122512
    25132513    return width + MAX(kLeftMargin,
    2514         fMasterView->LatchWidth()) + kRightMargin * 2;
     2514        fMasterView->LatchWidth()) + 4;
    25152515}
    25162516
    25172517
     
    40404040    if (row == NULL)
    40414041        return;
    40424042
     4043    while (row->fChildList != NULL && !row->fChildList->IsEmpty())
     4044        RemoveRow(row->fChildList->ItemAt(0));
     4045
    40434046    BRow* parentRow;
    40444047    bool parentIsVisible;
    40454048    float subTreeHeight = row->Height();