<screen backgroundColor="XionBackground" name="ChoiceBoxExt" position="center,center" size="1264,467" title="Input" flags="wfNoBorder">
    <widget name="title" position="2,2" size="1260,60" font="mediaportal;40" backgroundColor="XionBackground" foregroundColor="XionFont1" zPosition="1" halign="center" valign="center" transparent="1" />
    <widget name="text" position="15,85" size="1180,0" font="mediaportal;30" zPosition="1" backgroundColor="XionBackground" transparent="1" />
    <widget name="list" position="2,65" size="1260,400" itemHeight="38" backgroundColor="XionBackground" scrollbarMode="showOnDemand" transparent="1" zPosition="1" />
	<applet type="onLayoutFinish">
# this should be factored out into some helper code, but currently demonstrates applets.
from enigma import eSize, ePoint

orgwidth = self.instance.size().width()
orgpos = self.instance.position()
textsize = self["text"].getSize()

# y size still must be fixed in font stuff...
textsize = (textsize[0] + 80, textsize[1] + 80)
count = len(self.list)
if count &gt; 10:
        count = 10
offset = 38 * count
wsizex = textsize[0] + 70
wsizey = textsize[1] + offset + 60

if (650 &gt; wsizex):
        wsizex = 650
wsize = (wsizex, wsizey)

# resize
self.instance.resize(eSize(*wsize))

# resize label
self["text"].instance.resize(eSize(*textsize))
self["title"].instance.resize(eSize(*(wsize[0]-4, 60)))
self["bgup"].instance.resize(eSize(*(wsize[0]-4, 60)))
self["bgdown"].instance.resize(eSize(*(wsize[0]-4, wsize[1]-66)))

# move list
listsize = (wsizex - 20, 38 * count)
self["list"].instance.move(ePoint(10, textsize[1]+30))
self["list"].instance.resize(eSize(*listsize))

# center window
newwidth = wsize[0]
self.instance.move(ePoint(orgpos.x() + (orgwidth - newwidth)/2, (1080-wsizey)/2))
	</applet>
</screen>
