mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Position the selected line on the library view in the center instead of at the edge
This commit is contained in:
parent
44123efeff
commit
3e05f78637
@ -631,7 +631,7 @@ class BooksView(QTableView): # {{{
|
||||
h = self.horizontalHeader()
|
||||
for i in range(h.count()):
|
||||
if not h.isSectionHidden(i) and h.sectionViewportPosition(i) >= 0:
|
||||
self.scrollTo(self.model().index(row, i))
|
||||
self.scrollTo(self.model().index(row, i), self.PositionAtCenter)
|
||||
break
|
||||
|
||||
def set_current_row(self, row, select=True):
|
||||
|
Loading…
x
Reference in New Issue
Block a user