mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added an animation option to TabbedButtonBar::removeTab().
This commit is contained in:
parent
6ec478bb8d
commit
4aee96be04
2 changed files with 3 additions and 3 deletions
|
|
@ -287,7 +287,7 @@ void TabbedButtonBar::setTabName (const int tabIndex, const String& newName)
|
|||
}
|
||||
}
|
||||
|
||||
void TabbedButtonBar::removeTab (const int tabIndex)
|
||||
void TabbedButtonBar::removeTab (const int tabIndex, const bool animate)
|
||||
{
|
||||
const int oldIndex = currentTabIndex;
|
||||
if (tabIndex == currentTabIndex)
|
||||
|
|
@ -296,7 +296,7 @@ void TabbedButtonBar::removeTab (const int tabIndex)
|
|||
tabs.remove (tabIndex);
|
||||
|
||||
setCurrentTabIndex (oldIndex);
|
||||
resized();
|
||||
updateTabPositions (animate);
|
||||
}
|
||||
|
||||
void TabbedButtonBar::moveTab (const int currentIndex, const int newIndex, const bool animate)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue