mirror of
https://github.com/nextcloud/server.git
synced 2024-07-26 19:36:56 +02:00
No js for popover positionning
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
d4f1518533
commit
291e3d331f
@ -219,7 +219,7 @@ input {
|
|||||||
|
|
||||||
.federationScopeMenu {
|
.federationScopeMenu {
|
||||||
top: 44px;
|
top: 44px;
|
||||||
margin: -5px 5px 0;
|
margin-right: calc(-50% + 30px); /* half - the triangle icon width - borders */
|
||||||
&.bubble::after {
|
&.bubble::after {
|
||||||
right: 50%;
|
right: 50%;
|
||||||
transform: translate(50%, 0);
|
transform: translate(50%, 0);
|
||||||
|
@ -137,16 +137,6 @@
|
|||||||
this.$el.removeClass('hidden');
|
this.$el.removeClass('hidden');
|
||||||
|
|
||||||
OC.showMenu(null, this.$el);
|
OC.showMenu(null, this.$el);
|
||||||
|
|
||||||
//Set the menuwidth
|
|
||||||
var menuWidth = this.$el.width();
|
|
||||||
this.$el.css('width', menuWidth);
|
|
||||||
|
|
||||||
//Calculate menu position
|
|
||||||
var l = offsetIcon.left - offsetHeading.left;
|
|
||||||
l = l - (menuWidth / 2) + ($el.outerWidth()/2);
|
|
||||||
this.$el.css('left', l);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user