mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 14:22:55 +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()
|
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;
|
RelativeSizeAxes = Axes.None;
|
||||||
|
|
||||||
Width = padding;
|
Width = padding;
|
||||||
|
|
||||||
RelativeSizeAxes = relativeAxes;
|
RelativeSizeAxes = relativeAxes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user