1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 00:28:34 +02:00

Compensate menuOver() for ellipsis

This commit is contained in:
Jakub Vrana
2013-04-23 17:12:48 -07:00
parent a72347f3c7
commit 2b58ebe327

View File

@@ -218,7 +218,7 @@ function pageClick(href, page, event) {
*/
function menuOver(el, event) {
var a = event.target;
if (/^a$/i.test(a.tagName) && a.offsetLeft + a.offsetWidth > a.parentNode.offsetWidth) {
if (/^a$/i.test(a.tagName) && a.offsetLeft + a.offsetWidth > a.parentNode.offsetWidth - 15) { // 15 - ellipsis
el.style.overflow = 'visible';
}
}