support positioning dialogs via <left> and <top>
authorJonathan Marshall <jmarshall@xbmc.org>
Sun, 3 Nov 2013 22:19:55 +0000 (11:19 +1300)
committerJonathan Marshall <jmarshall@xbmc.org>
Mon, 4 Nov 2013 20:51:46 +0000 (09:51 +1300)
xbmc/guilib/GUIWindow.cpp

index a1f894b..8306c79 100644 (file)
@@ -219,6 +219,8 @@ bool CGUIWindow::Load(TiXmlElement* pRootElement)
     {
       XMLUtils::GetFloat(pChild, "posx", m_posX);
       XMLUtils::GetFloat(pChild, "posy", m_posY);
+      XMLUtils::GetFloat(pChild, "left", m_posX);
+      XMLUtils::GetFloat(pChild, "top", m_posY);
 
       TiXmlElement *originElement = pChild->FirstChildElement("origin");
       while (originElement)