1. Hi all.

    I have made a template that shows a frame and that frame have a portrait hole where I have placed a texture in.

    The problem is that when I use that template the texture that should fill the hole, resizes to be the same size as the frame it self. take a look at this picture:

    Here is the source code for it as well. Template.xml

     <Ui xmlns="http://www.blizzard.com/wow/ui/"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.blizzard.com/wow/ui/
       http://wowprogramming.com/FrameXML/UI.xsd">
    
       <Frame name="ProGuideFramesTemplate" virtual="true">
         <Size>
           <AbsDimansion x="320" y="256" />
         </Size>
         <Layers>
           <Layer level="BACKGROUND">
             <Texture name="$parentIconTexture" parentKey="icon" file="Interface\Icons\trade_archaeology">
               <Size x="60" y="60" />
               <Anchors>
                 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                   <Offset>
                     <AbsDimansion x="4" y="-3" />
                   </Offset>
                 </Anchor>
               </Anchors>
             </Texture>
           </Layer>
           <Layer level="BORDER">
             <Texture file="Interface\AddOns\ProGuide\img\GuideFrameLeft.tga">
               <Anchors>
                 <Anchor point="LEFT" />
               </Anchors>
             </Texture>
             <Texture file="Interface\AddOns\ProGuide\img\GuideFrameRight.tga">
               <Anchors>
                 <Anchor point="RIGHT" />
               </Anchors>
             </Texture>
           </Layer>
         </Layers>
       </Frame>
     </Ui>
    

    ProGuide.lua

     local f = CreateFrame("Frame", "ProGuideObjectives1", UIParent, "ProGuideFramesTemplate")
     f:SetWidth(320)
     f:SetHeight(256)
     f:SetPoint("CENTER")
     SetPortraitToTexture(f.icon, "Interface\\Icons\\trade_archaeology")
    

    What am I doing wrong ?!?

    Just to clarify, then the portrait is named icon ;)

    PS. If I do this in pure lua code it works

  2. I ran it through the XML validator on the utils page, and it seems you've spelled AbsDimension incorrectly: <AbsDimansion x="4" y="-3" />

  3. HAH spelling error it was :P thanks for the help. I need to remember to use those tools some more ;) I have read the book they have made here so I should have known it ;)