item listing change

This commit is contained in:
Manuel Simon Hirsig
2016-11-28 21:21:38 +01:00
parent ea7150289d
commit efef235430
2 changed files with 3 additions and 8 deletions
-5
View File
@@ -670,11 +670,6 @@ local methods = {
end
end,
-- ============================================================================
-- Internal Results Table Methods
-- ============================================================================
UpdateRowInfo = function(self)
for _, info in self.rowInfo do
if type(info) == 'table' then
+3 -3
View File
@@ -68,12 +68,12 @@ function M.create(parent, on_click, selected)
local max_height = content:GetHeight()
local total_height = 0
while total_height + ROW_HEIGHT < max_height do
local row = CreateFrame('Button', nil, content)
local row = CreateFrame('Frame', nil, content)
row:SetHeight(ROW_HEIGHT)
row:SetWidth(195)
row:SetPoint('TOPLEFT', content, 2, -((row_index-1) * ROW_HEIGHT))
row:RegisterForClicks('LeftButtonUp', 'RightButtonUp')
row:SetScript('OnClick', on_click)
row:EnableMouse(true)
row:SetScript('OnMouseDown', on_click)
row:SetScript('OnEnter', function()
row.highlight:Show()
end)