item listing change
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user