mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 04:13:00 +08:00
Add note about enfocing size methodology
This commit is contained in:
parent
8cd1f08a92
commit
2987c0e802
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user