I have a menu item in the top-right corner of my web app, and the code is below. Problem is, it's wide, and instead of stretching, it just adds a scrollbar to the menu and I tried a bunch of css to fix it but can't seem to figure it out.
UPDATE:
I've added overflow: hidden !important;
as suggested in one of the answers, and that removed the scrollbar, but now it isn't wide enough and so I can't access all the buttons. Tried width: 800px !important
with the overflow, but it didn't change the width.
<button md-fab [md-menu-trigger-for]="settings">
<md-icon>settings</md-icon>
</button>
<md-menu class="menu-overflow-hidden" x-position="before" #settings="mdMenu">
<div style="display: flex; flex-direction: row; text-align: center">
<div style="flex: 1; padding: 24px">
<label>Left Side</label>
<button md-menu-item routerLink=""> Option 1 </button>
<button md-menu-item routerLink=""> Option 2 </button>
</div>
<div style="flex: 1; padding: 24px">
<label>Right Side</label>
<button md-menu-item routerLink=""> Option 3 </button>
<button md-menu-item routerLink=""> Sign Out </button>
</div>
</div>
</md-menu>
style.css
.menu-overflow-hidden {
overflow: hidden !important;
}