Question

I have a context menu strip with 8 items and two separators. When the user brings up the context menu strip, then hits the arrow key to scroll through the items, hitting the eighth item causes the menu to 'scroll' up, leaving blank space at the bottom. Is there any way to prevent that behaviour?

Was it helpful?

Solution

I found it. It turns out that if you have items in the menu that are not visible, it screws with the spacing. The fix was to change the logic to actually remove/add items or rebuild the menu rather than toggling menu item visibility. This is one case where toggling 'Visible' had some odd behaviour.

OTHER TIPS

I posted this as an answer because I wanted to add images to the posting. I am seeing the same behavior, and I think it is a flaw in the drop-down context menu itself.

Here is what is happening:

BEFORE
(source: googlepages.com)
AFTER
(source: googlepages.com)

It only occurs when a user goes down the context menu with the keyboard. It is as if it is attempting to do some kind of scrolling, because if you keep doing down the list, the selection resets at the top.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top