mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 16:42:57 +08:00
Fix selectorTab Depth if it's wonky when new tabs are added.
This commit is contained in:
parent
8dbbc623c7
commit
381c709639
@ -50,6 +50,15 @@ namespace osu.Game.Overlays.Chat
|
||||
ChannelSelectorActive.BindTo(selectorTab.Active);
|
||||
}
|
||||
|
||||
protected override void AddTabItem(TabItem<Channel> item, bool addToDropdown = true)
|
||||
{
|
||||
if (selectorTab.Depth < float.MaxValue)
|
||||
// performTabSort might've made selectorTab's position wonky, fix it
|
||||
TabContainer.ChangeChildDepth(selectorTab, float.MaxValue);
|
||||
|
||||
base.AddTabItem(item, addToDropdown);
|
||||
}
|
||||
|
||||
protected override TabItem<Channel> CreateTabItem(Channel value)
|
||||
{
|
||||
ChannelTabItem tab = new ChannelTabItem(value);
|
||||
|
Loading…
Reference in New Issue
Block a user