Closed (fixed)
Project:
Nice Menus
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Aug 2007 at 11:31 UTC
Updated:
20 May 2009 at 00:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
jasonwhat commentedHas this patch been applied yet?
Comment #2
add1sun commentedNope, it hasn't been applied yet. It needs to be tested first and I'd like a little more feedback on whether there is a better way to add this in. If folks familiar with JS could give a thumbs up or comments about it (as well as anyone doing general testing) that would move this in the right direction.
Comment #3
Crimson commentedI haven't tested it but I'm very familiar with this code and use it all over my site. This works as described and is the most elegant way to get :hover to work for every browser.
Comment #4
add1sun commentedSince we are already setting the over class in the JS, wouldn't it make more sense to just set the over class for all li and then separately add the other needed JS to the menuparent class? That is, why do the addClass twice?
Comment #5
ardas commentedThe code I provided isn't ideal, this is only to give an idea of what is needed. I did the simplest fix which works but before it is included into the module I think it needs some work. Please provide a better solution.
Comment #6
add1sun commentedArgh, OK, IE makes everything more difficult. We can't use just the over class because IE6 doesn't use multiple class selectors properly (i.e. only apply this style if the class is menuparent AND over) so we need a different name for the class anyway. Silly IE. Anyway, this patch simply does the above but names the class "ie-over" for every li in the menu and then the menuparents get an additional "over" class too. I'm not a huge fan of how that is all named by I don't want to mess up backwards compatibility for people that have already themed stuff based on the over class being the equivalent of menuparent. So there it is.
If I can get someone to review this and make sure it works as advertised, I'm ready to roll it in to the next release of Nice Menus.
Comment #7
add1sun commentedNote this is against the Drupal 5 version and will go there and HEAD when committed.
Comment #8
add1sun commentedWhoops the performance patch makes this fail on D5 branch. New patch.
Comment #9
Christefano-oldaccount commentedYou are braver than I am, add1sun. Here's the screenshot we discussed on IRC.
Comment #10
add1sun commentedHm, darn, I can't reproduce that on IE6 or IE7 on Win XP. The iFrame is totally invisible on my sites.
Did you try this without the patch as well in Garland, on the same site? Someone else had this issue before so I'm wondering if this is not related to this patch per se.
Also could you maybe try changing the iframe CSS to see if it helps? Trying changing the width and height on the iframe (in nice_menus.css) to something like 40px:
Then put the nice menu in the left sidebar and go to the Date settings page (admin/settings/date-time) and make sure it still looks OK when you fly out over the select dropdowns.
Comment #11
Christefano-oldaccount commentedI think my involvement is accidentally derailing the issue. It's possible that I'm experiencing something completely different because changing the width and height to 40px seems to completely fix the iframe glitch in the last screenshot, whether nice_menus.js is patched with #8 or not.
These tests are with IE 6.0.2800.1106 (IE6 SP1) running in a Windows 98 Wine bottle. I'd gladly test in a "real" Windows environment but my VMware image just blew up and I haven't yet reinstalled Windows.
Comment #12
add1sun commentedOK, I've made a new issue about the iFrame thing and we can continue dissecting that over there. http://drupal.org/node/200990
Comment #13
add1sun commentedOK, since the iFrame thingy is being handled in another issue I'm marking this back for review. I'd *really* like to have this tested in a custom theme that is currently working to make sure it doesn't mess it up for any reason, preferably in both IE6 and IE7.
If someone could even do a little CSS to verify that IE is working properly with ie-over class that would be awesome. I have tested all of this locally (but not on a custom theme) and it all seemed to work as advertised.
Comment #14
add1sun commentedMoving this to 6.x-dev. I will backport to 5 once we verify this works properly. The latest patch *should* apply to the 6 branch but I haven't actually tested that.
Really need testers so if you want this in the module please test!
Comment #15
add1sun commentedHm, since no one seems to be up for testing this from a patch I'm going to put it in the dev snapshot to see if folks will test that. Committed to 6 and HEAD.
Comment #16
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #17
bdornbush commentedI read this posting while trying to fix an IE6 problem, which had to do with the colors of text and background, and I was able to fix it once I found the following:
"In IE6, the :hover pseudo-class applies only to hyperlinks (which is incorrect under the CSS 2 specification), whereas other browsers recognize the :hover pseudo-class on any rendered element, per the CSS 2 specification. This problem is fixed in IE7." from Beginning CSS by Richard York. (I highly recommend this book!!)
I just duplicated the CSS code that was at the "li" level also at the "li a" level, and my problem was fixed.
Comment #18
harking commentedI've noticed that the nice_menus.css file still uses "over" instead of "ie-over" for the class selector.
Is this on purpose?
Comment #19
harking commentedNM, I was confused in the double application of "over" and "ie-over". Maybe both are not needed?