Fix the channel selector not appearing if the chat is scaled up too tall then back down

This commit is contained in:
DrabWeb
2017-05-31 22:08:25 -03:00
parent 2edbf64d69
commit d970430174

View File

@ -232,7 +232,11 @@ namespace osu.Game.Overlays
{ {
chatContainer.Height = (float)h; chatContainer.Height = (float)h;
channelSelection.Height = 1f - (float)h; channelSelection.Height = 1f - (float)h;
if (channelSelection.Height < channel_selection_min_height) channelSelection.Hide(); if (channelSelection.Height < channel_selection_min_height)
channelSelection.Hide();
else if (channelSelection.State == Visibility.Hidden && channelTabs.ChannelSelectorActive.Value)
channelSelection.Show();
tabBackground.FadeTo(Height == 1 ? 1 : 0.8f, 200); tabBackground.FadeTo(Height == 1 ? 1 : 0.8f, 200);
}; };
chatHeight.TriggerChange(); chatHeight.TriggerChange();