Ticket #3897: foobar.patch

File foobar.patch, 853 bytes (added by Duggan, 10 years ago)

I hope this is better :/

  • src/kits/interface/ColumnListView.cpp

     
    40434043    BRow* parentRow;
    40444044    bool parentIsVisible;
    40454045    float subTreeHeight = row->Height();
    4046     if (FindParent(row, &parentRow, &parentIsVisible)) {
     4046    bool result = FindParent(row, &parentRow, &parentIsVisible);
     4047    if (result || parentRow == NULL) {
    40474048        // adjust height
    40484049        if (parentIsVisible && (parentRow == 0 || parentRow->fIsExpanded)) {
    40494050            if (row->fIsExpanded) {
    40504051                for (RecursiveOutlineIterator iterator(row->fChildList);
    40514052                    iterator.CurrentRow(); iterator.GoToNext())
    4052                     subTreeHeight += iterator.CurrentRow()->Height();
     4053                    subTreeHeight += iterator.CurrentRow()->Height() + 1;
    40534054            }
    40544055        }
    40554056    }