HI Jacob and Rotating Banner Dev guys-
Let me know if this has been handled or if posted in the wrong place-
but in Google chrome- Rotating banner first appears really tiny in the header- then if you refresh the browser, it appears in full size. . .
here is the shrunken header issue in Chrome : http://strumviews.com/
I wonder if the CSS is not loading or something for that module. . . I have no idea. . .
However - on the other install I made it does not have this issue here : http://www.aimadvantage.com/
Same drupal platform, same host, same rotating banner install I am pretty sure-
Just must be a tiny error in the timing of the browser loading the css for Chrome in one instance- or something else???
Thanks for any ideas-
Aaron
Comment | File | Size | Author |
---|---|---|---|
#5 | 0001-Defer-starting-the-slideshow-until-the-images-are-lo.patch | 14.78 KB | james.elliott |
#4 | 0001-Restrict-slide-previews-to-fit-within-their-containe.patch | 14.18 KB | james.elliott |
Comments
Comment #1
james.elliott CreditAttribution: james.elliott commentedHi Aaron.
This is a sticky issue that I've wrestled with a few times and obviously needs a better solution if it is still happening as you've shown.
The problem is that in Chrome, until the image is completely loaded its dimensions are 0 by 0. The javascript that is making the banner work isn't aware of this and starts operating using that 0 by 0 size. The reason it works when you reload the page is that Chrome has the image in cache and appropriately reports the size.
I think this may also require looking into the ordering of image loading as well to get a complete solution.
Comment #2
AimAdvantage CreditAttribution: AimAdvantage commentedThanks James, I knew it had to do with the timing somehow of the CSS or dimension. . .
and of course as Google Chrome is gaining marketshare- it becomes more and more important-
Do you know if any patch will be issued for this idea?
I don't have a clue about js. . .
Thanks for an excellent module -
Aaron
http://www.aimadvantage.com
Comment #3
ksenzeeComment #4
james.elliott CreditAttribution: james.elliott commentedI spent some time on this and have attached a patch. It makes quite a few changes to the styling of the rotating banners and how settings are passed to the jQuery Cycle plugin.
The version of jQuery Cycle that I tested against was 2.99 I'm not sure of backwards compatibility at this point.
Comment #5
james.elliott CreditAttribution: james.elliott commentedBlah, the last patch was less effective than desirable. New patch defers starting of the cycle until the images are loaded.