summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2016-11-18 14:50:07 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-21 11:30:01 +0100
commitf062c6daeef99167dbe6f6512510d2958c3c5208 (patch)
treecdf2db03f0e23d4b27f5566702748e9cfa5ec9b4
parent15c075eba8b28b524b24256169b03e9ec9f2c968 (diff)
downloadnextcloud-server-f062c6daeef99167dbe6f6512510d2958c3c5208.tar.gz
nextcloud-server-f062c6daeef99167dbe6f6512510d2958c3c5208.zip
fix menu positioning hack
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
-rw-r--r--settings/css/settings.css1
-rw-r--r--settings/js/federationscopemenu.js2
2 files changed, 1 insertions, 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);
}