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