Workaround for article listing word-wrap when switching portrait/landscare
authorYves Marcoz <yves@marcoz.org>
Tue, 8 Jun 2010 05:23:57 +0000 (22:23 -0700)
committerYves Marcoz <yves@marcoz.org>
Tue, 8 Jun 2010 05:23:57 +0000 (22:23 -0700)
src/FeedingIt.py

index 417f596..ca23f2a 100644 (file)
@@ -658,6 +658,11 @@ class DisplayFeed(hildon.StackableWindow):
         # Fix up the column width for wrapping the text when the window is
         # resized (i.e. orientation changed)
         self.markup_renderer.set_property('wrap-width', event.width-20)  
+        it = self.feedItems.get_iter_first()
+        while it is not None:
+            markup = self.feedItems.get_value(it, FEED_COLUMN_MARKUP)
+            self.feedItems.set_value(it, FEED_COLUMN_MARKUP, markup)
+            it = self.feedItems.iter_next(it)
 
     def destroyWindow(self, *args):
         #self.feed.saveUnread(CONFIGDIR)