Commit 9552e90 1 parent 94544ee commit 9552e90 Copy full SHA for 9552e90
File tree 5 files changed +10
-9
lines changed
5 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 30
30
<directory suffix =" .php" >../sources/ext</directory >
31
31
</exclude >
32
32
<report >
33
- <clover outputDirectory =" /tmp" outputFile = " madb.xml" />
33
+ <clover outputFile =" /tmp/ madb.xml" />
34
34
</report >
35
35
</coverage >
36
36
Original file line number Diff line number Diff line change 30
30
<directory suffix =" .php" >../sources/ext</directory >
31
31
</exclude >
32
32
<report >
33
- <clover outputDirectory =" /tmp" outputFile = " mydb.xml" />
33
+ <clover outputFile =" /tmp/ mydb.xml" />
34
34
</report >
35
35
</coverage >
36
36
Original file line number Diff line number Diff line change 30
30
<directory suffix =" .php" >../sources/ext</directory >
31
31
</exclude >
32
32
<report >
33
- <clover outputDirectory =" /tmp" outputFile = " pgdb.xml" />
33
+ <clover outputFile =" /tmp/ pgdb.xml" />
34
34
</report >
35
35
</coverage >
36
36
Original file line number Diff line number Diff line change 26
26
<directory suffix =" .php" >../sources/ext</directory >
27
27
</exclude >
28
28
<report >
29
- <clover outputDirectory =" /tmp" outputFile = " web.xml" />
29
+ <clover outputFile =" /tmp/ web.xml" />
30
30
</report >
31
31
</coverage >
32
32
Original file line number Diff line number Diff line change @@ -680,15 +680,16 @@ class SiteTooltip
680
680
let viewportHeight = window . innerHeight ;
681
681
682
682
let x = rect . left ;
683
- let y = window . scrollY + rect . bottom + 5 ;
683
+ // Initially trying to position above the element
684
+ let y = window . scrollY + rect . top - tooltipHeight - 5 ;
684
685
685
- // Don't position below if it fall off-screen, instead move it above
686
- if ( rect . bottom + 5 + tooltipHeight > viewportHeight )
686
+ // Don't position above if it falls off-screen, instead move it below
687
+ if ( rect . top - ( tooltipHeight + 5 ) < 0 )
687
688
{
688
- y -= tooltipHeight + rect . height + 20 ;
689
+ y = window . scrollY + rect . bottom + 5 ;
689
690
}
690
691
691
- tooltip . style . cssText = ` left:${ x } px; top:${ y } px` ;
692
+ tooltip . style . cssText = ' left:' + x + ' px; top:' + y + 'px' ;
692
693
}
693
694
694
695
/**
You can’t perform that action at this time.
0 commit comments