ttip: tweaked layout of floating tooltips
This commit is contained in:
parent
2fdc08d92e
commit
75c3446c77
1 changed files with 5 additions and 5 deletions
|
@ -82,8 +82,8 @@ def set_x(m, w, s)
|
|||
[
|
||||
switch(
|
||||
placement_method(m, w, s)
|
||||
, 'I' , m.x - w.x
|
||||
, 'II' , m.x - w.x
|
||||
, 'I' , m.x - (w.x / 2)
|
||||
, 'II' , m.x - w.x
|
||||
, 'III' , 5
|
||||
# extra offset to avoid being obscured by the mouse. #
|
||||
, 'IV' , m.x + 15
|
||||
|
@ -105,9 +105,9 @@ def set_y(m, w, s)
|
|||
(
|
||||
switch(
|
||||
placement_method(m, w, s)
|
||||
, 'I' , m.y - w.y
|
||||
, 'I' , m.y - (w.y + 15)
|
||||
, 'II' , 5
|
||||
, 'III' , m.y - w.y
|
||||
, 'III' , m.y - w.y
|
||||
, 'IV' , 5
|
||||
, 'V' , 5
|
||||
, #default# m.y - w.y
|
||||
|
@ -118,7 +118,7 @@ def get_maximum_width(w, s)
|
|||
(
|
||||
if(w.x = 0
|
||||
# The default width upon the initial run. #
|
||||
, 160
|
||||
, 400
|
||||
, if(w.y <= s.y
|
||||
# If the window's height fits use that. #
|
||||
, w.x
|
||||
|
|
Loading…
Add table
Reference in a new issue