GUI: Fix tooltips occasionally getting cut off on the right

This commit is contained in:
Celtic Minstrel 2016-03-16 16:50:29 -04:00
parent 32c9378992
commit d94c73a972

View file

@ -80,7 +80,11 @@ def placement_method(m, w, s)
def set_x(m, w, s)
(
[
switch(
if(preferred_x + w.x > s.x
, s.x - w.x
, preferred_x)
where
preferred_x = switch(
placement_method(m, w, s)
, 'I' , m.x - (w.x / 2)
, 'II' , m.x - w.x