Closed (fixed)
Project:
Superfish Dropdown Menu
Version:
6.x-1.9-beta3
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
20 Nov 2011 at 21:02 UTC
Updated:
10 Nov 2012 at 12:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
mehrpadin commentedPrivet Igor,
Looks like the JavaScript is not running at all, do you see any error message in the "Console" tab of the Firebug? well in case you're not using it, install Firefox and then install Firebug on it.
Comment #2
zloy commentedMehrpadin, In version superfish 6.x-1.9-beta2 everything works fine!!!
I do not speak English sorry. Firefox+Firebug I use :) Errors in the console was not looking
Comment #3
mehrpadin commentedI don't know much Russian either :) I found it, it's not the JavaScript, it's the Supersubs plugin not working right for some reasons; Increase the Minimum width to 12 or 14 and it'll look good again.
Comment #4
zloy commentedMehrpadin, Thank you very much! In version superfish 6.x-1.9-beta2 works my Blog http://gosha.me/ :)
In the next version you fix a bug?
Comment #5
mehrpadin commentedTwo things:
v1.9-beta4 and v1.8 will work too, if you use the same settings (13 and 15) instead of 5 and 14 (your 2.png).
In the next version of the Superfish library, yes it'll be fixed.
Comment #6
zloy commented"extraWidth": 1 }
I can not find the setting(((
Comment #7
mehrpadin commentedThat one is not important. :)
Comment #8
zloy commentedMehrpadin, Thank you very much for your help:) Good luck, I wish you health!
Superfish library v1.2-beta In a file error?
Comment #9
mehrpadin commentedSpasibo Igor :)
Da, the supersubs.js, however it's not a big deal. The job of the Supersubs is resizing each sub-menu based on the width of its widest menu item, therefore all the items of the sub-menu will appear in 1 line and not wrapped into more than one line, of course as long as the new width is not bigger than the Maximum width and not smaller than the Minimum width).
From what I see currently, the Supersubs is not doing that, instead of that, it is resizing all of the sub-menus to fit the Minimum width, I don't know the reason, but the issue is in my to-do list and it'll be fixed as soon as possible.
Comment #10
zloy commentedThank you very much! You are a great developer!
Excellent free module for Drupal :)
Comment #11
eft commentedAny progress with this?
Comment #12
eft commentedI took a closer look at this and it seems that the supersubs plugin fails to calculate the item widths (clientWidth js attribute) because the display attribute of the parent UL tag has been set to "none" by a call to hideSuperfishUl() at line 50 of the superfish.js (in the librairies directory not the module directory).
In earlier versions of this module the supersubs function is called prior to the superfish main function whereas in the current beta4 the order is reversed. Consquently the superfish menu is already hidden by the time the supersubs goes to work.
Comment #13
eft commentedJust read the supersubs doc page where it states
So, there are a couple of solutions to this issue in the latest beta of this module:
a) rework the logic in modules/superfish/superfish.js so that supersubs gets to calculate the menu widths before the display is hidden by the main superfish function:
b) add a line to the supersubs.js function to make any hidden menu items visible and there available for width calculation
It looks like option a) is preferable since it doesn't impact the underlying superfish libarary. I'm just not sure how to do it.
Comment #14
eft commentedHere is a patch which addresses the solution (option a) I proposed above to rework the logic in modules/superfish/superfish.js so that supersubs gets to calculate the menu widths before the display is hidden by the main superfish function.
Comment #15
mehrpadin commentedHey eft,
Thank you very much, will review it as soon as possible!
:)
Comment #16
eft commentedHere is a cleaner version of the patch
Comment #17
eft commentedMehrpadin,
Any chance of a review of this patch?
tx
Comment #18
jaymallison commentedI just reviewed this patch. Applied it to 7.x-1.9-beta4. No change, Supersubs always re-sizes the UL to the specified minimum with no regard for the length of the text in the menu. Yes, I verified that the updated JS is being loaded by the browser through Chrome dev tools.
Comment #19
yeahflow commentedThe patch didn't work for me. As in I couldn't even apply it.
I put the patch in the superfish module directory then ran:
patch -p0 < superfish-fix-supersubs-1347710-14_0.patchAny suggestions?
Cheers.
Comment #20
tamsoftware commentedSame here.
- Installed superfish 7.x-1.9-beta4
- went into the module directory. superfish.js is present
- downloaded patch #16
Comment #21
tamsoftware commentedby the way on my installation (with Acquia Marina) the width of the vertical menu stays stuck at the number hard-coded in the superfish library css "superfish-vertical.css" which I've had to increase from 12em to 18em. What I put in the GUI in the supersubs area is simply ignored.
thanks
Comment #22
tamsoftware commentedBy the way, my comments #20 and #21 apply to version 7.x-1.9-beta4 and I see that the version indicated in this issue is 6.x-1.9-beta3.
Should I open a new issue for 7.x ? Is that why the patch in #16 doesn't apply ?
Thanks !
Comment #23
tamsoftware commentedeft, which version of the superfish module is this #16 patch for ? Thanks !!
Comment #24
zopa commentedi'm also running v7.x-1.9-beta4 (with Drupal 7 and Omega 3) and not getting supersubs to work -- looks like it's just rendering min width -- is there a patch for 7.x?
Comment #25
davewilly commentedNeed a fix also here.
Comment #26
mehrpadin commentedHey everybody,
I do apologies, I'm still terribly busy, can't get to SF & git yet, for the time being, you can put the attached ones in /sites/modules/superfish .
:)
Comment #27
mehrpadin commentedCorrection: /sites/all/modules/superfish
:)
Comment #28
TelFiRE commented#26 works like a charm.. this was driving me mad! Must be related to Omega (or just media queries in general) and bases it on the smallest layout, and doesn't update when you resize or when it loads the others.
Ok wait, scratch that, it doesn't work at all. it does nothing when I put it in sites/all/modules/superfish. The reason I thought it was working was because I thought it was to replace libraries/superfish/superfish.js and had done that... when I realized that had caused errors I started looking about and yeah, something's definitely amiss. Did I misunderstand how to implement?
So, for help troubleshooting, here are some details:
I am using Omega. Even if I have only a fixed-width layout enabled, I believe there is still a conflict/issue.
It is almost as if it grabs it from the smallest layout, regardless of which you are in.
It does not update on resize.
For some reason, supersubs was working when I replaced my libraries/superfish/superfish.js file with the one provided above.
But, that causes an error because there is no method 'superfish'.
And it also does nothing if i just paste that at the end of the existing superfish.js
Comment #29
micnap commentedI also tried #26 for d7 and it didn't work for me either. I'm using Adaptive Themes - Sky theme.
Mickey
Comment #30
mehrpadin commentedFixed in the development release :)