when focusing current card, position at top
trying out the changes mentioned on https://github.com/ankitects/anki/pull/1222#discussion_r648051997
This commit is contained in:
parent
1f2567e04c
commit
2b8bbda55f
@ -458,7 +458,7 @@ class Table:
|
||||
visible = top_border >= 0 and bottom_border < self._view.viewport().height()
|
||||
if not visible or scroll_even_if_visible:
|
||||
horizontal = self._view.horizontalScrollBar().value()
|
||||
self._view.scrollTo(self._model.index(row, 0), self._view.PositionAtCenter)
|
||||
self._view.scrollTo(self._model.index(row, 0), self._view.PositionAtTop)
|
||||
self._view.horizontalScrollBar().setValue(horizontal)
|
||||
|
||||
def _scroll_to_column(self, column: int) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user