Author: duncan
Date: Thu Aug 9 15:53:49 2007
New Revision: 9811
Log:
[ 1771165 ] Scrollarea overflows when font has border
Patch from Tanja Kotthaus applied
Modified:
branches/rel-1/freevo/src/skin.py
branches/rel-1/freevo/src/skins/main/scrollabletext_area.py
Modified: branches/rel-1/freevo/src/skin.py
==============================================================================
--- branches/rel-1/freevo/src/skin.py (original)
+++ branches/rel-1/freevo/src/skin.py Thu Aug 9 15:53:49 2007
@@ -133,11 +133,11 @@
self.lines = []
rest = self.text
while rest:
- line, rest, nl = self.__get_line__(rest, width, font, ' ', False)
+ line, rest, nl = self.__get_line__(rest, width, font.font, ' ',
False)
if not line and rest and not nl:
- line, rest, nl = self.__get_line__(rest, width, font, ' -_',
False)
+ line, rest, nl = self.__get_line__(rest, width, font.font, '
-_', False)
if not line and rest and not nl:
- line, rest, nl = self.__get_line__(rest, width, font, '
-_', True)
+ line, rest, nl = self.__get_line__(rest, width, font.font,
' -_', True)
self.lines.append(line)
Modified: branches/rel-1/freevo/src/skins/main/scrollabletext_area.py
==============================================================================
--- branches/rel-1/freevo/src/skins/main/scrollabletext_area.py (original)
+++ branches/rel-1/freevo/src/skins/main/scrollabletext_area.py Thu Aug 9
15:53:49 2007
@@ -72,7 +72,7 @@
if self.scrollable_text != scrollable_text:
- scrollable_text.layout(content.width, content.height,
content.font.font)
+ scrollable_text.layout(content.width, content.height, content.font)
self.scrollable_text = scrollable_text
page = scrollable_text.get_page()
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog