small table adjustment

This commit is contained in:
Manuel Simon Hirsig
2016-07-26 05:04:55 +02:00
parent 77f7f36ec6
commit bf7bc7ad61
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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
View File
@@ -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()
+2 -2
View File
@@ -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()