Skip to content

Commit

Permalink
comment edit
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierMiracle committed Aug 15, 2024
1 parent c35ea02 commit d454fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dock.Avalonia/Controls/ProportionalStackPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ private double CalculateDimension(double dimension, double proportion, int child
return Math.Max(0, flooredChildDimension);
else
{
// if so, it assigns the divided pixel to the first control in proportional split
// if it leaves, it assigns the divided pixel to the first control in proportional split
int isFirst = childIndex == 0 ? 1 : 0;
return Math.Max(0, flooredChildDimension + isFirst);
}
Expand Down

0 comments on commit d454fe1

Please sign in to comment.