refactoring, bugfix

This commit is contained in:
Manuel Simon Hirsig
2016-11-09 02:08:45 +01:00
parent c7d2284b3d
commit 05fb051bd4
18 changed files with 109 additions and 99 deletions
+3 -3
View File
@@ -859,9 +859,9 @@ local methods = {
-- get index of selected row
local prevSelectedIndex
if rt.selected then
for index, row in rt.rows do
for i, row in rt.rows do
if row:IsVisible() and row.data and row.data.record == rt.selected then
prevSelectedIndex = index
prevSelectedIndex = i
end
end
end
@@ -1038,7 +1038,7 @@ function M.CreateAuctionResultsTable(parent, config)
-- create the header cells
rt.headCells = T
for i, column_config in rt.config do
for i, column_config in ipairs(rt.config) do
local cell = CreateFrame('Button', nil, rt.contentFrame)
cell:SetHeight(HEAD_HEIGHT)
if i == 1 then