Browse Source

TreeView: Fix getAllVisibleItems() when only the final row of the tree fits in the viewport

Fixes #1118
v7.0.9
reuk 2 years ago
parent
commit
db90a31813
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/widgets/juce_TreeView.cpp

+ 1
- 1
modules/juce_gui_basics/widgets/juce_TreeView.cpp View File

@@ -647,7 +647,7 @@ private:
auto* i = owner.rootItemVisible ? owner.rootItem
: owner.rootItem->subItems.getFirst();
while (i != nullptr && i->y < visibleTop)
while (i != nullptr && i->y + i->getItemHeight() < visibleTop)
i = getNextVisibleItem (i, true);
return i;


Loading…
Cancel
Save