1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 17:27:39 +08:00

Merge pull request #17206 from frenzibyte/skin-toolbox-autosizing

Fix skin components toolbox not autosizing properly
This commit is contained in:
Dean Herbert 2022-03-10 23:03:07 +09:00 committed by GitHub
commit 80e1ffe762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,9 @@ namespace osu.Game.Overlays
Expanded.BindValueChanged(v =>
{
content.ClearTransforms();
// clearing transforms can break autosizing, see: https://github.com/ppy/osu-framework/issues/5064
if (v.NewValue != v.OldValue)
content.ClearTransforms();
if (v.NewValue)
content.AutoSizeAxes = Axes.Y;