mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 13:23:22 +08:00
Add comment about padding update computation
This commit is contained in:
parent
49568a3d56
commit
2e022fbcb5
@ -164,6 +164,8 @@ namespace osu.Game.Rulesets.Taiko.UI
|
||||
{
|
||||
base.Update();
|
||||
|
||||
// Padding is required to be updated for elements which are based on "absolute" X sized elements.
|
||||
// This is basically allowing for correct alignment as relative pieces move around them.
|
||||
rightArea.Padding = new MarginPadding { Left = leftArea.DrawWidth };
|
||||
hitTargetOffsetContent.Padding = new MarginPadding { Left = HitTarget.DrawWidth / 2 };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user