Skip to content
Code-Schnipsel Gruppen Projekte
Commit 660fa400 erstellt von Michael Danielczok's avatar Michael Danielczok
Dateien durchsuchen

fix: resolved menu positioning issue


Acked-by: default avatarHenning Leutz <leutz@pcsg.de>

Related: #53
Übergeordneter 861623a3
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!45fix: resolved menu positioning issue,!44fix: resolved menu positioning issue
Pipeline-Nr. 5897 bestanden
......@@ -311,8 +311,16 @@ define('qui/controls/contextmenu/Menu', [
this.setAttribute('menuPosLeft', false);
if (Parent.nodeName === 'BODY') {
var elm_pos = Elm.getPosition(),
body_size = Parent.getScrollSize();
let elm_pos = Elm.getPosition();
// Use 'display: none' so that the menu does not enlarge the body,
// while we measure the scroll size of the body.
// Verwende 'display: none', damit das Menü den Body nicht vergrößert,
// während wir die Scrollgröße des Body messen.
this.$Elm.setStyle('display', 'none');
let body_size = Parent.getScrollSize();
this.$Elm.setStyle('display', null);
if (elm_pos.x + scrollSize.x + 50 > body_size.x) {
this.$Elm.setStyle('left', body_size.x - scrollSize.x - 50);
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren