1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:02:55 +08:00

Add note about enfocing size methodology

This commit is contained in:
Dean Herbert 2023-11-15 19:01:52 +09:00
parent 8cd1f08a92
commit 2987c0e802
No known key found for this signature in database

View File

@ -293,9 +293,13 @@ namespace osu.Game.Screens.Play.HUD
void enforceMinimumWidth()
{
var relativeAxes = RelativeSizeAxes;
// Switch to absolute in order to be able to define a minimum width.
// Then switch back is required. Framework will handle the conversion for us.
Axes relativeAxes = RelativeSizeAxes;
RelativeSizeAxes = Axes.None;
Width = padding;
RelativeSizeAxes = relativeAxes;
}