Skip to content

Commit

Permalink
ttip: tweaked layout of floating tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Mar 14, 2016
1 parent 2fdc08d commit 75c3446
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions data/gui/default/window/tooltip_large.cfg
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 75c3446

Please sign in to comment.