fix calculation of dynamic height of the ChoiceBox screen
[enigma2.git] / data / skin_default.xml
index 3c8fc4921741b6c379e11a54a9f11345b58b05fa..cddc18f49d38cb447d8a3e4efcb4d2c30839f344 100644 (file)
@@ -291,13 +291,14 @@ textsize = self["text"].getSize()
 # y size still must be fixed in font stuff...
 textsize = (textsize[0] + 50, textsize[1] + 50)
 count = len(self.list)
 # y size still must be fixed in font stuff...
 textsize = (textsize[0] + 50, textsize[1] + 50)
 count = len(self.list)
-if count > 6:
-       count = 6
-offset = 30 * count
+if count > 10:
+       count = 10
+offset = 25 * count
 wsizex = textsize[0] + 60
 wsizey = textsize[1] + offset
 wsizex = textsize[0] + 60
 wsizey = textsize[1] + offset
-if (400 > wsizex):
-       wsizex = 400
+
+if (450 > wsizex):
+       wsizex = 450
 wsize = (wsizex, wsizey)
 
 
 wsize = (wsizex, wsizey)
 
 
@@ -308,7 +309,7 @@ self.instance.resize(eSize(*wsize))
 self["text"].instance.resize(eSize(*textsize))
 
 # move list
 self["text"].instance.resize(eSize(*textsize))
 
 # move list
-listsize = (wsizex, 30 * len(self.list))
+listsize = (wsizex, 25 * count)
 self["list"].instance.move(ePoint(0, textsize[1]))
 self["list"].instance.resize(eSize(*listsize))
 
 self["list"].instance.move(ePoint(0, textsize[1]))
 self["list"].instance.resize(eSize(*listsize))