mirror of
https://github.com/ppy/osu.git
synced 2026-05-21 01:00:27 +08:00
Fix skin components toolbox not autosizing properly
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user