Add comment with reasoning for TopRight anchor

This commit is contained in:
Dean Herbert 2020-10-19 16:02:39 +09:00
parent 03f336feb5
commit f597572d73

View File

@ -73,6 +73,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
}, },
new Container new Container
{ {
// top right works better when the vertical height of the component changes smoothly (avoids weird layout animations).
Anchor = Anchor.TopRight, Anchor = Anchor.TopRight,
Origin = Anchor.TopRight, Origin = Anchor.TopRight,
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,