mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Broaden search grid
This commit is contained in:
parent
18bbf1dd0b
commit
6d1ff03ace
@ -77,8 +77,8 @@ def save_scroll_position():
|
|||||||
container = document.getElementById(book_list_data.container_id)
|
container = document.getElementById(book_list_data.container_id)
|
||||||
if container:
|
if container:
|
||||||
left, top = container.offsetLeft, container.offsetTop
|
left, top = container.offsetLeft, container.offsetTop
|
||||||
for y in range(5, 50, 5):
|
for y in range(5, 100, 5):
|
||||||
for x in range(25, 75, 5):
|
for x in range(25, 125, 5):
|
||||||
elem = document.elementFromPoint(left + x, top + y)
|
elem = document.elementFromPoint(left + x, top + y)
|
||||||
p = has_parent_with_class(elem, ITEM_CLASS_NAME)
|
p = has_parent_with_class(elem, ITEM_CLASS_NAME)
|
||||||
if p:
|
if p:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user