aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-03-02 00:53:47 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-03-02 00:53:47 +0000
commit4ad28359f1e3090e963e1a8083c34c0940d0514d (patch)
tree7f24b8a2fdde4a9ed2c50549ae2a3fb7f63863c5 /data
parent8cbc6c7588b526ea9bfee4de5be4719f3e81017a (diff)
downloadenigma2-4ad28359f1e3090e963e1a8083c34c0940d0514d.tar.gz
enigma2-4ad28359f1e3090e963e1a8083c34c0940d0514d.zip
better resizing
Diffstat (limited to 'data')
-rw-r--r--data/skin.xml13
1 files changed, 8 insertions, 5 deletions
diff --git a/data/skin.xml b/data/skin.xml
index 4367b413..2d920f84 100644
--- a/data/skin.xml
+++ b/data/skin.xml
@@ -347,7 +347,7 @@
</screen>
<screen name="ChoiceBox" position="100,100" size="550,400" title="Input" >
<widget name="text" position="0,0" size="550,25" font="Regular;20" />
- <widget name="list" position="0,30" size="550,335" />
+ <widget name="list" position="0,30" size="550,335" scrollbarMode="showOnDemand" />
<applet type="onLayoutFinish">
# this should be factored out into some helper code, but currently demonstrates applets.
from enigma import eSize, ePoint
@@ -358,11 +358,14 @@ textsize = self["text"].getSize()
# y size still must be fixed in font stuff...
textsize = (textsize[0] + 50, textsize[1] + 50)
-offset = 60
+count = len(self.list)
+if count > 6:
+ count = 6
+offset = 30 * count
wsizex = textsize[0] + 60
wsizey = textsize[1] + offset
-if (280 > wsizex):
- wsizex = 280
+if (400 > wsizex):
+ wsizex = 400
wsize = (wsizex, wsizey)
@@ -373,7 +376,7 @@ self.instance.resize(eSize(*wsize))
self["text"].instance.resize(eSize(*textsize))
# move list
-listsize = (wsizex, 50)
+listsize = (wsizex, 30 * len(self.list))
self["list"].instance.move(ePoint(0, textsize[1]))
self["list"].instance.resize(eSize(*listsize))