Carousel Layout of universal module, height problem

More
11 years 3 months ago #38992 by rottenberg
Hello,
for the same register of universal module (carrousel version), I get sometimes problem with the height fo the module : sometimes, the height is good and sometime (generally at the 1st display of the page) I get a wrong module height :
[attachment=0:sx8sphjo]<!-- ia0 -->carrousel_error.jpg<!-- ia0 -->[/attachment:sx8sphjo]
[attachment=1:sx8sphjo]<!-- ia1 -->carrousel_ok.jpg<!-- ia1 -->[/attachment:sx8sphjo]

the link for to get the page : tv.bibliactiv.com
the FC version : v1709.

How can I correct it ?

thank you for help

best regards

Michel

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #38993 by ggppdk
Hello
try editing

mod_flexicontent/tmpl/carousel.php

and replace:
Code:
element.style.height = maxHeight + "px";
with:
Code:
element.style.minHeight = maxHeight + "px";

instead of improper height, the items will have the height that fits their content (it will not be equal height though unless your content is designed to be)

in your case the content has same height anyway


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #38995 by rottenberg
Thank you, it's working.

What will arrive on the future versions ?
Shall I need to modify the carrousel.php for each new version ?

thanks for help
best regards
Michel

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #39001 by ggppdk
Hello,

i will commit this change, since it is a nice fallback


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.508 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline