Skip to content
Snippets Groups Projects
Commit 3bfa279b authored by druid's avatar druid
Browse files

menu panel positioning

parent 8d46a43e
No related branches found
No related tags found
No related merge requests found
......@@ -146,8 +146,7 @@ export class HyDesktopMenuLinks {
this.showBackdropShadow('open', shadowTop);
// Position submenu block under the activated top menu item.
let activeButtonRect = activeMenuItem.getBoundingClientRect();
const menuPanelLeftPosition = activeButtonRect.left - this._submenuLeftMargin;
const menuPanelLeftPosition = activeMenuItem.offsetLeft - this._submenuLeftMargin;
activeMenuItemSibling.style.paddingLeft = `${menuPanelLeftPosition}px`;
// Position shortcuts block.
......
......@@ -23,7 +23,8 @@
position: fixed;
right: 0;
transform: translateY(0) translateZ(0);
width: 100%;
//width: 100%;
width: inherit; //??
}
&--sticky-hidden {
top: 0;
......@@ -166,6 +167,7 @@
background-color: rgba(0, 0, 0, 0.4);
transition: background-color 300ms;
visibility: visible;
width: inherit; //??
z-index: 99;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment