From fd002c45932aa88271af9be88f2d585199ac5a1e Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 4 May 2006 16:04:33 +0000 Subject: [PATCH] fix calculation of dynamic height of the ChoiceBox screen --- data/skin_default.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/data/skin_default.xml b/data/skin_default.xml index 31f7fb90..cddc18f4 100644 --- a/data/skin_default.xml +++ b/data/skin_default.xml @@ -291,11 +291,12 @@ textsize = self["text"].getSize() # 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 + if (450 > wsizex): wsizex = 450 wsize = (wsizex, wsizey) @@ -308,7 +309,7 @@ self.instance.resize(eSize(*wsize)) 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)) -- 2.30.2