Don't store hideChevron

This commit is contained in:
DrabWeb 2017-05-26 16:32:46 -03:00
parent 4c127a6130
commit c9971bb490
1 changed files with 1 additions and 2 deletions

View File

@ -24,11 +24,10 @@ public BreadcrumbControl()
var tIndex = TabContainer.IndexOf(t);
var tabIndex = TabContainer.IndexOf(TabMap[tab]);
var hide = tIndex < tabIndex;
var hideChevron = tIndex <= tabIndex;
t.FadeTo(hide ? 0f : 1f, 500, EasingTypes.OutQuint);
t.ScaleTo(new Vector2(hide ? 0.8f : 1f, 1f), 500, EasingTypes.OutQuint);
((BreadcrumbTabItem)t).Chevron.FadeTo(hideChevron ? 0f : 1f, 500, EasingTypes.OutQuint);
((BreadcrumbTabItem)t).Chevron.FadeTo(tIndex <= tabIndex ? 0f : 1f, 500, EasingTypes.OutQuint);
}
};
}