mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 04:39:54 +08:00
Add comment about padding update computation
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user