The text editor is behaving oddly.
Jobs.Razor
<!DOCTYPE html>
<link rel='nofollow' href="https://cdn.syncfusion.com/blazor/24.2.3/styles/tailwind.css" rel="stylesheet" />
<script src="_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js" type="text/javascript"></script>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base rel='nofollow' href="/" />
<link rel="stylesheet" rel='nofollow' href="bootstrap/bootstrap.min.css" />
<link rel="stylesheet" rel='nofollow' href="app.css" />
<link rel="stylesheet" rel='nofollow' href="WorkforceViewer.styles.css" />
<link rel="icon" type="image/png" rel='nofollow' href="favicon.png" />
<HeadOutlet @rendermode="InteractiveServer" />
</head>
<body style="background:white">
<Routes @rendermode="new InteractiveServerRenderMode(prerender: false)" />
<script src="_framework/blazor.web.js"></script>
display: flex is what causes it to stop working. I need to move my menu items to the right side of element. Flex and inline flex both work, but stop the buttons from opening. Click events still fire, they just don't open.
.e-menu-container {
width: 100%;
display: flex;
justify-content: right;
background: white;
}
After some digging, I've found the menus are actually opening "off screen" far to the right of the content.
When using flex and right align, it's pushing the submenu off.
Hi Jeremy,
We have reviewed the reported query, and you are applying the CSS style using the “e-menu-container” class. However, this class is used for both the parent menu and the submenu, which is the only issue. To move the menu component to the right side of the page, you can wrap the menu component inside a parent `<div>` element and then use CSS to align the `<div>` to the right. Please refer to the code snippets below for implementation details.
|
<div class="e-custom-menu"> <SfMenu ShowItemOnClick="true" TValue="MenuItem"> <MenuItems> <MenuItem Text="File"> <MenuItems> <MenuItem Text="Open"></MenuItem> <MenuItem Text="Save"></MenuItem> <MenuItem Text="Exit"></MenuItem> </MenuItems> </MenuItem> <MenuItem Text="Edit"> <MenuItems> <MenuItem Text="Cut"></MenuItem> <MenuItem Text="Copy"></MenuItem> <MenuItem Text="Paste"></MenuItem> </MenuItems> </MenuItem> </MenuItems> </SfMenu> </div> <style> .e-custom-menu { width: 100%; display: flex; justify-content: right; background: white; } </style> |
Please let us know if you need any further assistance on this.
Regards,
KeerthiKaran K V