follow itemHeight changes
[enigma2.git] / lib / python / Components / ChoiceList.py
index a2070c7db6a2ae74332fe7e5946976e5397b93d9..a7a5e4831eee0a222a0d792fc062199e0ad15136 100644 (file)
@@ -24,11 +24,11 @@ class ChoiceList(MenuList, HTMLComponent, GUIComponent):
                self.list = list
                self.l.setList(list)
                self.l.setFont(0, gFont("Regular", 20))
                self.list = list
                self.l.setList(list)
                self.l.setFont(0, gFont("Regular", 20))
+               self.l.setItemHeight(25)
                self.selection = selection
 
        GUI_WIDGET = eListbox
                
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
                self.selection = selection
 
        GUI_WIDGET = eListbox
                
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
-               instance.setItemHeight(25)
                self.moveToIndex(self.selection)
                self.moveToIndex(self.selection)