retry the waiting message
[enigma2.git] / lib / python / Components / ScrollLabel.py
index 4a5caf6a3d251900ab17367247989ba3e4b315b1..62f64b1d1a785fde1d096abe6e1c489d6a60b806 100644 (file)
@@ -16,14 +16,15 @@ class ScrollLabel(HTMLComponent, GUIComponent):
                skin.applyAllAttributes(self.long_text, desktop, self.skinAttributes)
                s = self.long_text.size()
                self.instance.move(self.long_text.position())
-               self.scrollbar.move(ePoint(s.width()-20,0))
-               self.scrollbar.resize(eSize(20,s.height()))
-               self.scrollbar.setOrientation(eSlider.orVertical);
-               self.scrollbar.setRange(0,100)
                lineheight=fontRenderClass.getInstance().getLineHeight( self.long_text.getFont() )
                lines = (int)(s.height() / lineheight)
                self.pageHeight = (int)(lines * lineheight)
                self.instance.resize(eSize(s.width(), self.pageHeight+(int)(lineheight/6)))
+               self.scrollbar.move(ePoint(s.width()-20,0))
+               self.scrollbar.resize(eSize(20,self.pageHeight+(int)(lineheight/6)))
+               self.scrollbar.setOrientation(eSlider.orVertical);
+               self.scrollbar.setRange(0,100)
+               self.scrollbar.setBorderWidth(1)
                self.long_text.move(ePoint(0,0))
                self.long_text.resize(eSize(s.width()-30, self.pageHeight*16))
                self.setText(self.message)