mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:42:55 +08:00
Use padding instead of FillFlow.Spacing
to avoid artifact during animation
This commit is contained in:
parent
a506178571
commit
5a02e1e713
@ -78,7 +78,6 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
LayoutDuration = 150,
|
LayoutDuration = 150,
|
||||||
LayoutEasing = Easing.OutQuart,
|
LayoutEasing = Easing.OutQuart,
|
||||||
Spacing = new Vector2(3),
|
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
},
|
},
|
||||||
|
@ -113,6 +113,9 @@ namespace osu.Game.Overlays.Notifications
|
|||||||
},
|
},
|
||||||
dragContainer = new DragContainer(this)
|
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,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
}.WithChild(MainContent = new Container
|
}.WithChild(MainContent = new Container
|
||||||
|
@ -106,7 +106,6 @@ namespace osu.Game.Overlays.Notifications
|
|||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
LayoutDuration = 150,
|
LayoutDuration = 150,
|
||||||
LayoutEasing = Easing.OutQuart,
|
LayoutEasing = Easing.OutQuart,
|
||||||
Spacing = new Vector2(3),
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user