Fix sizing of OsuAnimatedButton and OsuClickableContainer

Was incorrect under some combinations of relative and autosize usage.
This commit is contained in:
Dean Herbert
2019-06-03 13:53:24 +09:00
parent e017350b80
commit 3ef17a54f6
3 changed files with 80 additions and 1 deletions

View File

@ -31,7 +31,7 @@ namespace osu.Game.Graphics.Containers
{
if (AutoSizeAxes != Axes.None)
{
content.RelativeSizeAxes = RelativeSizeAxes;
content.RelativeSizeAxes = (Axes.Both & ~AutoSizeAxes);
content.AutoSizeAxes = AutoSizeAxes;
}