Skip to content

Commit 5269fdd

Browse files
committed
Fix spelling of dimension
1 parent 1ce7a87 commit 5269fdd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Microsoft.Toolkit.Uwp.UI.Controls/TileControl/TileControl.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,15 +470,15 @@ private void CreateModuloExpression(ScrollViewer scrollViewer, double imageWidth
470470
expressionX.SetReferenceParameter(propSetParam, propertySetModulo);
471471
expressionY.SetReferenceParameter(propSetParam, propertySetModulo);
472472

473-
string Thing(string common, string diemtion)
473+
string Thing(string common, string dimension)
474474
=> string.Format(
475475
"{0} == 0 " +
476476
"? 0 " +
477477
": {0} < 0 " +
478478
"? -(Abs({0} - (Ceil({0} / {1}) * {1})) % {1}) " +
479479
": -({1} - ({0} % {1}))",
480480
common,
481-
diemtion);
481+
dimension);
482482

483483
string expressionXVal;
484484
string expressionYVal;
@@ -499,8 +499,8 @@ string Thing(string common, string diemtion)
499499
expressionX.SetReferenceParameter(scrollParam, scrollProperties);
500500
expressionY.SetReferenceParameter(scrollParam, scrollProperties);
501501

502-
string LocalThing(string scroll, string speed, string offset, string dimention)
503-
=> Thing(string.Format("Ceil(({0} * {1}) + {2})", scroll, speed, offset), dimention);
502+
string LocalThing(string scroll, string speed, string offset, string dimension)
503+
=> Thing(string.Format("Ceil(({0} * {1}) + {2})", scroll, speed, offset), dimension);
504504

505505
expressionXVal = LocalThing(scrollParam + ".Translation.X", qualifiedSpeedParam, qualifiedOffsetXParam, qualifiedImageWidthParam);
506506

0 commit comments

Comments
 (0)