Enforce composer aspect ratio to avoid depending on ambient window size

This commit is contained in:
Bartłomiej Dach 2022-05-04 11:56:29 +02:00
parent f899c3e68f
commit a759e641eb
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -71,6 +71,11 @@ namespace osu.Game.Tests.Visual.Editing
Child = editorBeatmapContainer = new EditorBeatmapContainer(Beatmap.Value)
{
Child = hitObjectComposer = new OsuHitObjectComposer(new OsuRuleset())
{
// force the composer to fully overlap the playfield area by setting a 4:3 aspect ratio.
FillMode = FillMode.Fit,
FillAspectRatio = 4 / 3f
}
};
});
}