From 8a01647dbab14f1fc0131f5f1ede1df6993cfc6f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Dec 2025 14:42:56 +0530 Subject: [PATCH] Shelf base should extend into side margin --- src/calibre/gui2/library/bookshelf_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/library/bookshelf_view.py b/src/calibre/gui2/library/bookshelf_view.py index cb5cbcd698..25f17b010a 100644 --- a/src/calibre/gui2/library/bookshelf_view.py +++ b/src/calibre/gui2/library/bookshelf_view.py @@ -1583,7 +1583,7 @@ class BookshelfView(MomentumScrollMixin, QAbstractScrollArea): QPoint(0, 0), self.case_renderer.background_as_pixmap(viewport_rect.width(), viewport_rect.height())) n = self.shelves_per_screen for base in shelf_bases: - self.draw_shelf_base(painter, base, scroll_y, visible_rect.width(), base.idx % n) + self.draw_shelf_base(painter, base, scroll_y, self.width(), base.idx % n) for shelf, has_expanded in shelves: # Draw books and inline dividers on it for item in shelf.items: