mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:03:08 +08:00
Merge pull request #17206 from frenzibyte/skin-toolbox-autosizing
Fix skin components toolbox not autosizing properly
This commit is contained in:
commit
80e1ffe762
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user