Browse Source

Accessibility: Set TreeViewItem expanded/collapsed state only when it has sub-items

v6.1.6
ed 4 years ago
parent
commit
cdee88c003
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      modules/juce_gui_basics/widgets/juce_TreeView.cpp

+ 6
- 4
modules/juce_gui_basics/widgets/juce_TreeView.cpp View File

@@ -112,12 +112,14 @@ private:
}
if (treeItem.mightContainSubItems())
{
state = state.withExpandable();
if (treeItem.isOpen())
state = state.withExpanded();
else
state = state.withCollapsed();
if (treeItem.isOpen())
state = state.withExpanded();
else
state = state.withCollapsed();
}
if (treeItem.isSelected())
state = state.withSelected();


Loading…
Cancel
Save