I have a simple app where a Kendo menu is displayed and there is some text content on the page. The problem is that when the menu shows up then it still shows the text content behind it as in the image below.
The sample for this including all code can be seen at Demo code for this issue. The code in this sample has been divided into three sections using the following comments <!--page resources-->, <!--page script-->, <!--page html--> and <!--page styles-->
The correct display for Kendo menu should be as below.
What I found after some research is that if the style of the paragraph displaying the text content has position:unset
, then this Kendo menu issue disappears, but I still fail to understand why by adding this style the text content gets hidden behind the Kendo menu? The text content is still at the same position as it was when the issue was there, yet it’s now hidden below the menu.
2
Answers
Im a new contributor and I can’t make any comment
Very simple, you need to undo your work until you found at first when the overlap happen.
Understanding the Issue:
Based on the provided images and code snippets, the root cause of the overlapping text with the Kendo menu is the positioning of the elements involved. The text content is likely positioned in a way that overlaps with the menu when it’s opened.
Analysis of the Solution:
Setting the position: unset style on the paragraph seems to have resolved the issue by changing the positioning behavior of the text element. However, it’s crucial to understand why this change worked to address the root cause effectively.
Possible Explanations:
Recommended Steps:
Additional Tips:
By carefully analyzing the code and applying these recommendations, you should be able to resolve the Kendo menu overlapping issue and achieve the desired layout.
The sidebar does not have
z-index
set so the article content is shown above the menu. You can fix it by adding the belowz-index
style.Demo