small table adjustment
This commit is contained in:
@@ -90,8 +90,8 @@ function public.create(parent, on_click, on_enter, on_leave, selected)
|
||||
row.item = Aux.gui.item(row)
|
||||
row.item:EnableMouse(nil)
|
||||
row.item:SetScale(0.9)
|
||||
row.item:SetPoint('LEFT', 2, 0)
|
||||
row.item:SetPoint('RIGHT', 2, 0)
|
||||
row.item:SetPoint('LEFT', 2.5, 0)
|
||||
row.item:SetPoint('RIGHT', -2.5, 0)
|
||||
row:RegisterForClicks('LeftButtonUp', 'RightButtonUp')
|
||||
|
||||
local highlight = row:CreateTexture()
|
||||
|
||||
+2
-2
@@ -363,10 +363,10 @@ local methods = {
|
||||
row:SetHeight(ST_ROW_HEIGHT)
|
||||
local rowNum = getn(st.rows) + 1
|
||||
if rowNum == 1 then
|
||||
row:SetPoint('TOPLEFT', 0, -(st.sizes.headHeight + ST_HEAD_SPACE))
|
||||
row:SetPoint('TOPLEFT', 2, -(st.sizes.headHeight + ST_HEAD_SPACE))
|
||||
row:SetPoint('TOPRIGHT', 0, -(st.sizes.headHeight + ST_HEAD_SPACE))
|
||||
else
|
||||
row:SetPoint('TOPLEFT', 0, -(st.sizes.headHeight + ST_HEAD_SPACE + (rowNum - 1) * ST_ROW_HEIGHT))
|
||||
row:SetPoint('TOPLEFT', 2, -(st.sizes.headHeight + ST_HEAD_SPACE + (rowNum - 1) * ST_ROW_HEIGHT))
|
||||
row:SetPoint('TOPRIGHT', 0, -(st.sizes.headHeight + ST_HEAD_SPACE + (rowNum - 1) * ST_ROW_HEIGHT))
|
||||
end
|
||||
local highlight = row:CreateTexture()
|
||||
|
||||
@@ -136,8 +136,8 @@ Aux.post_tab.FRAMES(function(m, public, private)
|
||||
ClearCursor()
|
||||
end)
|
||||
local highlight = item:CreateTexture()
|
||||
highlight:SetPoint('TOPLEFT', -2, 2)
|
||||
highlight:SetPoint('BOTTOMRIGHT', 2, -2)
|
||||
highlight:SetPoint('TOPLEFT', -2.5, 2)
|
||||
highlight:SetPoint('BOTTOMRIGHT', 2.5, -2)
|
||||
highlight:Hide()
|
||||
highlight:SetTexture(1, .9, .9, .1)
|
||||
item:SetScript('OnEnter', function()
|
||||
|
||||
Reference in New Issue
Block a user