Commit 6f5129a8 authored by nevcairiel's avatar nevcairiel
Browse files

AceGUI-3.0: Label: Fix alignment of the text to the icon (Ticket #301)

git-svn-id: https://repos.wowace.com/wow/ace3/trunk@1052 5debad98-a965-4143-8383-f471b3509dcf
parent ea236679
......@@ -2,7 +2,7 @@
Label Widget
Displays text and optionally an icon.
-------------------------------------------------------------------------------]]
local Type, Version = "Label", 21
local Type, Version = "Label", 22
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
......@@ -43,7 +43,7 @@ local function UpdateImageAnchor(self)
else
-- image on the left
image:SetPoint("TOPLEFT")
label:SetPoint("TOPLEFT", image, "TOPRIGHT", 4, 0)
label:SetPoint("LEFT", image, "RIGHT", 4, 0)
label:SetWidth(width - imagewidth - 4)
height = max(image:GetHeight(), 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