mirror of
https://github.com/ppy/osu.git
synced 2026-06-02 11:31:02 +08:00
Use padding instead of FillFlow.Spacing to avoid artifact during animation
This commit is contained in:
@@ -78,7 +78,6 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
LayoutDuration = 150,
|
||||
LayoutEasing = Easing.OutQuart,
|
||||
Spacing = new Vector2(3),
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
},
|
||||
|
||||
@@ -113,6 +113,9 @@ namespace osu.Game.Overlays.Notifications
|
||||
},
|
||||
dragContainer = new DragContainer(this)
|
||||
{
|
||||
// Use margin instead of FillFlow spacing to fix extra padding appearing when notification shrinks
|
||||
// in height.
|
||||
Padding = new MarginPadding { Vertical = 3f },
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
}.WithChild(MainContent = new Container
|
||||
|
||||
@@ -106,7 +106,6 @@ namespace osu.Game.Overlays.Notifications
|
||||
RelativeSizeAxes = Axes.X,
|
||||
LayoutDuration = 150,
|
||||
LayoutEasing = Easing.OutQuart,
|
||||
Spacing = new Vector2(3),
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user