allow position="center,center" to center screen client area on screen
[enigma2.git] / lib / python / Components / GUISkin.py
index 9eb4a80b3b80321f480763b4c9357a81192a523e..1bd2729700ad3b28751e4ec87461b983646fd4ec 100644 (file)
@@ -85,6 +85,9 @@ class GUISkin:
                if not self.instance:
                        from enigma import eWindow
                        self.instance = eWindow(self.desktop, z)
+
+               # we need to make sure that certain attributes come last
+               self.skinAttributes.sort(key=lambda a: {"position": 1}.get(a[0], 0))
                self.title = title
                applyAllAttributes(self.instance, self.desktop, self.skinAttributes, self.scale)
                self.createGUIScreen(self.instance, self.desktop)