mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix to avoid negative width assertion when drawing fitted text in very deep TreeView file trees.
This commit is contained in:
parent
56423ae9fd
commit
9276540e7d
1 changed files with 1 additions and 1 deletions
|
|
@ -861,7 +861,7 @@ void TreeView::recalculateIfNeeded()
|
|||
if (rootItem != nullptr)
|
||||
{
|
||||
viewport->getViewedComponent()
|
||||
->setSize (jmax (viewport->getMaximumVisibleWidth(), rootItem->totalWidth),
|
||||
->setSize (jmax (viewport->getMaximumVisibleWidth(), rootItem->totalWidth + 50),
|
||||
rootItem->totalHeight - (rootItemVisible ? 0 : rootItem->itemHeight));
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue