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

[Solved] Strange behavior on menu hover

4 Answers 163 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Derek Hunziker
Top achievements
Rank 1
Derek Hunziker asked on 08 Jul 2010, 11:42 PM
Hello,

There seems to be a display issue with the menu when you hover over one of the root items. To reproduce the issue, you have to first expand a section then quickly move your mouse out - and then back over the menu while it's still collapsing. Put another way, you have to hover over an item while it's collapse animation is running.

What happens is the sub UL will appear behind some elements on the page. It even occurs on the demo (the dropdown will appear behind the tabs below). I tested it and the same happens in IE 7 & 8, Firefox 3.6.6 and Chrome.

Any idea what's causing this?

Thanks,

-Derek

4 Answers, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 09 Jul 2010, 07:51 AM
Hello Derek,

Thank you for spotting this problem! You can easily resolve it if you swap two lines in telerik.menu.js, namely:

    $item.css('z-index', menu.nextItemZIndex++);
    $t.fx.play(menu.effects, $ul, getEffectOptions($item));

...should turn into:

    $t.fx.play(menu.effects, $ul, getEffectOptions($item));
    $item.css('z-index', menu.nextItemZIndex++);
The fix will be included in upcoming releases.

Sincerely yours,
Alex Gyoshev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Derek Hunziker
Top achievements
Rank 1
answered on 09 Jul 2010, 04:27 PM
Alex,

Thank you for the quick fix!

-Derek
0
Derek Hunziker
Top achievements
Rank 1
answered on 09 Jul 2010, 05:08 PM
Also, this is unrelated and most likely a bug in Firebug's try/catch handling, but the isBogus function was throwing an error in Firefox.

The following seemed to fix it:

function isBogus(element) {
 
    if (!element)
        return true;
 
    try {
        var parent = element.parentNode;
        return false;
    } catch (error) {
        return true;
    }
 
}
0
Alex Gyoshev
Telerik team
answered on 15 Jul 2010, 07:53 AM
Hello Derek,

Thanks for the tip -- we modified our code not to rely on this function during the past quarter, so the new release should not have this problem.

Regards,
Alex Gyoshev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Menu
Asked by
Derek Hunziker
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Derek Hunziker
Top achievements
Rank 1
Share this question
or