Closed (fixed)
Project:
Quick Tabs
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2015 at 17:13 UTC
Updated:
23 Jun 2017 at 09:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kevincrafts commentedComment #2
omaster commentedI am not sure this is the best way to take this forward into the future. A better way would be allowing the user to change the heightStyle setting for newer versions of jquery but as it is this does address the issue and until someone really needs the third option available using heightstyle this will fix the important issue
Comment #3
omaster commentedActually I forgot to say there is one typo in it. autoHeight should be all lower case autoheight.
Have added a file that has this change.
Comment #4
alexiscott commented#3 works a charm. Tested on version = "7.x-3.6"
Comment #5
lquessenberry commentedi am getting the following error and I am not sure why.
Notice: Undefined index: autoheight in QuickAccordion->add_attached() (line 67 of /var/www/public/sites/all/modules/contrib/quicktabs/plugins/QuickAccordion.inc).
Other than that it seems to work properly.
Comment #6
lquessenberry commentedI ended up stripping the IF statement to force it to work without throwing error. If it helps I am using jQuery update and 1.10 version. I hope there's a better fix for this down the road. I patched both the dev and stable releases and had the same error message.
Comment #7
santiwww commentedI had the same notice of undefined index, and the problem is that there is no typo in the first patch as omaster points out, the jQuery UI setting has the property "autoHeight" not in lowercase so the patch #1 made by kevincrafts is the correct one.
Comment #8
JimJS commentedI changed the patch to check isset and the undefined index error stopped.
if (!isset($settings['options']['jquery_ui']['autoheight'])) {
Comment #9
stefan.kornStumbled across the same problem with Jquery Update.
Patch given in #3 sets the heightStyle option regardless what Jquery UI is used. Since Jquery UI 1.8 and lower do not support heightStyle (and that is the default in D7) the option heightStyle should probably not be set, even if it does not have any side effects.
So I have done another patch which adds an option heightStyle to the configuration of the Accordion. Here we can choose to not use heightStyle (for Jquery UI 1.8 and lower) or to use one of the options for heightStyle (auto, fill or content). If heightStyle option other than "don't use" is chosen the autoHeight option will be removed in the Javascript, since it is replaced by heightStyle in newer Jquery Versions.
So I think this is a cleaner JS code, since only one option, either autoHeight or heightStyle, will be set.
Comment #10
stefan.kornComment #12
stefan.kornComment #13
stefan.kornComment #14
afschThe patch in Comment #3 works just in some cases. The condition (line 67) throws an error when the 'autoheight' is undefined. I just improved a bit that condition.
Comment #16
afschComment #17
millionleaves commentedThe patch in #16 did the trick for me - thanks.
Comment #18
kienan commentedPatch in #16 also worked for me.
Comment #19
bensey commented#16 worked for me also...
Thanks.
Commit, commit!
Comment #20
nwom commentedThis applied cleanly and worked against the newest dev. Thank you for your work! It also fixed the problem where the views titles were not displaying.
Comment #21
tutorb commentedNumber 16 worked for me...
Thanks to Alexito!
Comment #23
systemick commentedCommitted into the dev branch. This will be in the next release.
Comment #24
systemick commentedComment #25
systemick commented