mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-02 03:20:06 +00:00
Introjucer: fix for stuck sliding panels in new project wizard.
This commit is contained in:
parent
1359a6b895
commit
013b1ce000
1 changed files with 1 additions and 3 deletions
|
|
@ -86,12 +86,10 @@ void SlidingPanelComponent::addTab (const String& tabName,
|
|||
|
||||
void SlidingPanelComponent::goToTab (int targetTabIndex)
|
||||
{
|
||||
const int xTranslation = (currentIndex - targetTabIndex) * getWidth();
|
||||
|
||||
currentIndex = targetTabIndex;
|
||||
|
||||
Desktop::getInstance().getAnimator()
|
||||
.animateComponent (&pageHolder, pageHolder.getBounds().translated (xTranslation, 0),
|
||||
.animateComponent (&pageHolder, pageHolder.getBounds().withX (-targetTabIndex * getWidth()),
|
||||
1.0f, 600, false, 0.0, 0.0);
|
||||
|
||||
repaint();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue