From f062c6daeef99167dbe6f6512510d2958c3c5208 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Fri, 18 Nov 2016 14:50:07 +0100 Subject: [PATCH] fix menu positioning hack Signed-off-by: Jan-Christoph Borchardt --- settings/css/settings.css | 1 - settings/js/federationscopemenu.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index 74e19a22011..74d97f21cb6 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -114,7 +114,6 @@ input#openid, input#webdav { width:20em; } .federationScopeMenu.bubble::after { right: 50%; transform: translate(50%, 0); - margin-right: -8px; } .federationScopeMenu.popovermenu a.menuitem, .federationScopeMenu.popovermenu label.menuitem, diff --git a/settings/js/federationscopemenu.js b/settings/js/federationscopemenu.js index a5da04df918..d073478ff5f 100644 --- a/settings/js/federationscopemenu.js +++ b/settings/js/federationscopemenu.js @@ -125,7 +125,7 @@ //Calculate menu position var l = offsetIcon.left - offsetHeading.left; - l = l - (menuWidth / 2) + ($el.width()/2); + l = l - (menuWidth / 2) + ($el.outerWidth()/2); this.$el.css('left', l); } -- 2.39.5