Active
Project:
Andromeda Slideshow
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Nov 2011 at 09:46 UTC
Updated:
24 Oct 2012 at 09:40 UTC
Jump to comment: Most recent file
Hi,
I noticed that with several browsers, images are not visible until page refresh.
This is because images dimensions are not known by the browser until it downloads the image, so the element's height is 0 when javascript starts.
This issue doesn't occurs on the demo site because the css is customized with fixed dimensions.
theme_image_style() should be used as it tries to get image dimensions, and rdf metadata is added.
The following patch resolves this issue by adding a image_tag property to $image, directly used by the nivo-slider template.
(I kept image and settings properties for backward compatibility)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | theme_image_style-1335138-0.patch | 1.69 KB | manu-manu |
Comments
Comment #1
manu-manuPatch with issue number.
Comment #2
steelglass06 commentedHi,
I've been having the same trouble. Wasn't sure if I placed my libraries incorrectly or something else entirely that was creating the problem. I'm not "code savy" so I apologize if this seems like a silly question. Hopefully Manu Manu or someone else could tell me where to place the patch code that manu manu provided? Thank you in advance!
Andrew
Comment #3
manu-manuHi steelglass06,
Basically you have to replace the function andromeda_slideshow_block_view() in andromedia_slideshow.module near line 200 by this:
and the content of modules/andromeda_slideshow_nivo_slider/nivo-slider.tpl.php by this:
These modifications are quite safe but you should continue to follow this issue as the module's maintainer hasn't responded yet and may implement a proper way to resolve this issue..
Comment #4
BrendanP commented#3 fix worked for me, thanks @manu
My issue was that webkit browsers, chrome(ium) / safari, where not displaying the slideshow on first view/load. I.e. you visit the site for the first time, the images are downloaded but not displayed. If you navigate away from the page and then return to the page with the slideshow, the images are read from the browser cache and displayed as expected.
Comment #5
shadcn commentedThanks for your help on this @manu manu, i'll commit this asap.
Comment #6
shadcn commentedComment #7
drBob-2 commentedThanks for this great instuctions. The slideshow works very well after this new code. But now in structure/blocks the 'slideshow titles' are no longer there. It says 'no blocks in this region'. While the slideshows are there. When I put the original 'andromeda_slideshow.module' back, the 'slideshow titles' are back in 'structure/blocks'. Is there some code missing?
Comment #8
manu-manuSorry, I forgot to mention that these modifications are for the dev version.
Comment #9
drBob-2 commentedI'm using the 'Andromeda Slideshow 7.x-1.x-dev (2011-nov-08)'. Still no sign of the slideshow titles in 'structure/blocks'.
Comment #10
drBob-2 commentedDid the whole 'process' again from scratch. And as by miracle they are there again. Sorry for the trouble.
Comment #11
shadcn commentedok committed.
Comment #13
andrea.orlando commentedsame trouble after patch and after update at 2011-Dec-14 verson
Comment #14
azmchichi commentedsubscribing
Comment #15
azmchichi commentedBonjour,
I think the problem is that the browser loads the HTML code before the module calculates the size of the
To solve the problem temporarily, you have to assign the CSS proprieties "height" and/or "width" the size of the used style image.
for example:
in any CSS file (which we are sure it loads with the slideshow page ), you put:
or (to determine the page )
Excuse me for my English ! :D
--
Abdel.MA
Comment #16
maxrossello commentedThis works but is not responsive to changes to the slider size
Comment #17
maxrossello commentedI reopen this. Even with the patch, slideshow requires to click the home link after a refresh in order to show images on Chrome.
Firefox works as expected instead.
Through inspection, it turns out that the containing div is not set with an height attribute on Chrome.
Setting a value into css makes it unresponsive to changes in slideshow dimensions
Comment #18
sidog commentedI am also have the same issues even w/ the latest updates. No initial image load unless i click the home button
Comment #19
jcnventuraConfirmed that this still happens in the latest dev.