This is a migrated thread and some comments may be shown as answers.

Context menu goes outside screen boundary

1 Answer 201 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Ernestas
Top achievements
Rank 1
Ernestas asked on 08 Oct 2014, 10:42 AM
For some reason context menu goes outside screen boundary (see attached image) and this forces scrollbars to appear. If the target is at the bottom of the screen, then the context menu covers the target element itself.

This problem only occurs when the page has vertical scrollbar.

Initialization script:
jQuery(function(){
   jQuery("#SettingsContextMenu").kendoContextMenu({"openOnClick":true,"alignToAnchor":true,"target":"#GridSettings","showOn":"click"});});<br>

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 10 Oct 2014, 07:19 AM
Hello Dovydas,

The ContextMenu has screen boundary detection, and you can see this on our online demos. Here is a video that I created:

http://www.screencast.com/t/JuBGeYLe3RX6

I am not really sure what happens in your case, so if you can isolate the example in a small dojo sample, we will be able to reproduce the issue and advise you further.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Menu
Asked by
Ernestas
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or