From 491e5698cf28dd6bb5bf560c981c7b4e29e6ff87 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 26 Sep 2016 09:03:24 +0530 Subject: [PATCH] ... --- src/pyj/read_book/view.pyj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyj/read_book/view.pyj b/src/pyj/read_book/view.pyj index f25c12c95d..3e9e43d03a 100644 --- a/src/pyj/read_book/view.pyj +++ b/src/pyj/read_book/view.pyj @@ -198,7 +198,8 @@ class View: return ans def on_resize(self): - self.set_margins() # needed because of max text height/width + if self.book and self.currently_showing.name: + self.set_margins() # needed because of max text height/width def show_loading(self): title = self.book.metadata.title