X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FScrollLabel.py;h=46d22abc6451c2ebb3878d777a6c4e305b71178a;hb=5138dce8cfa3d4987ebc8899d5fd990883d1a1dc;hp=253353bb4d5c120bcf863862e77391aee97fc1ec;hpb=896d63aa5605a9b6ef641830eae4038addc53c60;p=vuplus_dvbapp diff --git a/lib/python/Components/ScrollLabel.py b/lib/python/Components/ScrollLabel.py index 253353b..46d22ab 100644 --- a/lib/python/Components/ScrollLabel.py +++ b/lib/python/Components/ScrollLabel.py @@ -13,10 +13,10 @@ class ScrollLabel(HTMLComponent, GUIComponent): self.pages = None self.total = None - def applySkin(self, desktop): + def applySkin(self, desktop, parent): ret = False if self.skinAttributes is not None: - skin.applyAllAttributes(self.long_text, desktop, self.skinAttributes) + skin.applyAllAttributes(self.long_text, desktop, self.skinAttributes, parent.scale) widget_attribs = [ ] scrollbar_attribs = [ ] for (attrib, value) in self.skinAttributes: @@ -24,8 +24,8 @@ class ScrollLabel(HTMLComponent, GUIComponent): scrollbar_attribs.append((attrib,value)) if attrib.find("transparent") != -1 or attrib.find("backgroundColor") != -1: widget_attribs.append((attrib,value)) - skin.applyAllAttributes(self.instance, desktop, widget_attribs) - skin.applyAllAttributes(self.scrollbar, desktop, scrollbar_attribs+widget_attribs) + skin.applyAllAttributes(self.instance, desktop, widget_attribs, parent.scale) + skin.applyAllAttributes(self.scrollbar, desktop, scrollbar_attribs+widget_attribs, parent.scale) ret = True s = self.long_text.size() self.instance.move(self.long_text.position())