Move comment to more fitting place

This commit is contained in:
Bartłomiej Dach 2023-07-28 22:10:10 +02:00
parent 6d018c08af
commit caad931a16
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -244,12 +244,12 @@ protected override void Update()
{
base.Update();
// Ensure that the playfield is always centered but also doesn't get cut off by toolboxes.
if (ApplyHorizontalCentering)
{
PlayfieldContentContainer.Anchor = Anchor.Centre;
PlayfieldContentContainer.Origin = Anchor.Centre;
// Ensure that the playfield is always centered but also doesn't get cut off by toolboxes.
PlayfieldContentContainer.Width = Math.Max(1024, DrawWidth) - TOOLBOX_CONTRACTED_SIZE_RIGHT * 2;
PlayfieldContentContainer.X = 0;
}