mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-19 01:04:20 +00:00
Force TreeView to recalculate its size after restoring item openness in TreeView::restoreOpennessState() so that its Viewport scroll position is restored correctly
This commit is contained in:
parent
bc78b2f524
commit
79885fc6ad
1 changed files with 3 additions and 0 deletions
|
|
@ -638,6 +638,9 @@ void TreeView::restoreOpennessState (const XmlElement& newState, const bool rest
|
|||
{
|
||||
rootItem->restoreOpennessState (newState);
|
||||
|
||||
needsRecalculating = true;
|
||||
recalculateIfNeeded();
|
||||
|
||||
if (newState.hasAttribute ("scrollPos"))
|
||||
viewport->setViewPosition (viewport->getViewPositionX(),
|
||||
newState.getIntAttribute ("scrollPos"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue