Skip to content

Commit 5e94fb9

Browse files
committed
style: 修复一处单词拼写错误
1 parent 5c15f36 commit 5e94fb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MY_TargetMon/src/MY_TargetMonView.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ local function FormatAllItemPosExt(hList)
325325
end
326326
local W = hList:GetW()
327327
local w, h = hItem:GetSize()
328-
local columms = math.max(math.floor(W / w), 1)
328+
local columns = math.max(math.floor(W / w), 1)
329329
local ignoreInvisible = hList:IsIgnoreInvisibleChild()
330330
local aItem = {}
331331
for i = 0, hList:GetItemCount() - 1 do
@@ -342,9 +342,9 @@ local function FormatAllItemPosExt(hList)
342342
elseif align == ALIGNMENT.RIGHT then
343343
x, deltaX = W - w, - w
344344
elseif align == ALIGNMENT.CENTER then
345-
x, deltaX = (W - w * math.min(#aItem, columms)) / 2, w
345+
x, deltaX = (W - w * math.min(#aItem, columns)) / 2, w
346346
end
347-
for i = 1, math.min(#aItem, columms) do
347+
for i = 1, math.min(#aItem, columns) do
348348
table.remove(aItem, 1):SetRelPos(x, y)
349349
x = x + deltaX
350350
end

0 commit comments

Comments
 (0)