GUI: Fix tooltips occasionally getting cut off on the right
This commit is contained in:
parent
32c9378992
commit
d94c73a972
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue