mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 00:37:05 +01:00
Reduce handle size by 30%
This commit is contained in:
parent
ef7222d007
commit
11d00b59ea
1 changed files with 2 additions and 2 deletions
|
|
@ -647,8 +647,8 @@ def place_vertically(pos, put_below):
|
|||
def place_single_handle(self, handle_height, handle, boundary, is_left):
|
||||
s = handle.style
|
||||
s.display = 'block' if boundary.onscreen else 'none'
|
||||
height = handle_height * 3
|
||||
width = handle_height * 2
|
||||
height = handle_height * 2
|
||||
width = int(height * 2 / 3)
|
||||
s.width = f'{width}px'
|
||||
s.height = f'{height}px'
|
||||
bottom = boundary.y + boundary.height
|
||||
|
|
|
|||
Loading…
Reference in a new issue