Commit 0f75290c authored by nevcairiel's avatar nevcairiel
Browse files

AceGUI-3.0: Fix height-adjustments of the Label widget, apparently the height...

AceGUI-3.0: Fix height-adjustments of the Label widget, apparently the height doesn't adjust itself when you anchor the top two corners, it needs a fixed width value.

git-svn-id: https://repos.wowace.com/wow/ace3/trunk@927 5debad98-a965-4143-8383-f471b3509dcf
parent 259e31bf
......@@ -37,19 +37,19 @@ local function UpdateImageAnchor(self)
image:SetPoint("TOP")
label:SetPoint("TOP", image, "BOTTOM")
label:SetPoint("LEFT")
label:SetPoint("RIGHT")
label:SetWidth(width)
height = image:GetHeight() + label:GetHeight()
else
-- image on the left
image:SetPoint("TOPLEFT")
label:SetPoint("TOPLEFT", image, "TOPRIGHT", 4, 0)
label:SetPoint("TOPRIGHT")
label:SetWidth(width - imagewidth - 4)
height = max(image:GetHeight(), label:GetHeight())
end
else
-- no image shown
label:SetPoint("TOPLEFT")
label:SetPoint("TOPRIGHT")
label:SetWidth(width)
height = label:GetHeight()
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment