hi,
I have created a slideshow with 2 picture. First, the preview under view sometimes not working correctly. 2nd, under Chrome, sometimes it work, sometimes it don't. Browse to other website and come back sometimes can work and click refresh may make it don't.
I have tested on IE7, Firefox and Chrome and only Chrome give me this problem so I "inspect the element" go into CSS and found out something is wrong.
See the different between WORKING and FAULTY as when the slideshow is working, all the coordinate, width and height contain value, but when it's not working, all the coordinate, width and height has 0 value.
Has anyone experience the same issue?
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | chrome_not_display-1191534-9.patch | 935 bytes | ckng |
| #7 | 1191534.patch | 544 bytes | romeo404 |
| FAULTY | 340.7 KB | maxchock | |
| WORKING | 310.4 KB | maxchock |
Comments
Comment #1
maxchock commentedI double checked, it work randomly no matter which transition mode i choose.
Comment #2
rhazor commentedHello. My problem was: Default Nivo Slider settings, IE8 and FF works fine, but when you go with Chrome, there is nothing in sliders place, its just plain empty area. Anyway the slider is enabled, because with Firebug you can see the code.
Interesting: Lets say my slider is in a home page. When I visit my page, no slider. Then lets say I click some link like Contact, go to Contact page and then click back button in your Chrome browser and slider will appear working. If you refresh, its all gone again.
So, my solution is: You need to set correct width and height in your .css (I use my custom themes styles.css in themes folder). An example:
That fixed my problem.
Tools used: views_nivo_slider-7.x-2.x-dev.zip, views_jqfx.tar.gz, nivo-slider2.5.2.zip (plugin from official Nivo Slider website, this must be unpacked into the sites/all/libraries folder)
Comment #3
maxchock commentedYa, your problem is same as mine. I think is becoz chrome handle image different from IE and Firefox? If your way can fix the problem means that the CSS can't get the dimension of the image??
Can someone plz come out with a better fix rather than a hack?
Comment #4
classicwinters commentedHello I've been trying to get this working on 7.2x can you give me a slightly detailed steps for creating the views and content types for this? I've been running into problem after problem. Thanks
Comment #5
melissa81 commentedIts been 3 months since the last dev update. Hope this get stable soon.
-Mel.
Comment #6
maxchock commentedI guess this project is not under very active development. View Slideshow is more active but is not easy to use.
Comment #7
romeo404 commentedmy solution but it will cause some trouble with ajax after that
Comment #8
kaylsbeth commentedI found going into modules > views_nivo_slider > styles > default, opening custom-nivo-slider.css, and putting in the height and width of my pictures under .nivoSlider img did the trick. I haven't seen any cross-browser compatibility issues, and it pleases chrome.
I'm not sure if I'm breaking some sort of rule by directly editing the css within the module files, but it worked.
Comment #9
ckngThis should be related to image dimension not generated, see http://drupal.org/node/908282#comment-3482664
Also keep an eye out for #1129642: Populate HTML image tags with dimension attributes (like D6 imagefield) without re-introducing I/O
Please try out this patch to see if there are any problem.
Comment #10
ckngComment #11
ckngComment #12
caschbre commentedI applied the patch in #9 and so far i haven't experienced this issue anymore in chrome.
Comment #13
altavis commented@#9
I'm glad to confirm that this issue is solved. Works in FF3.6, Chromium and Opera.
Comment #14
tomas_fenix commentedApplied patch #9 and all it did was extend the width to 100% of container, did not expand height.
Comment #15
ckngPatch #9 only added 1 line of code to ensure the page is loaded before getting the image size, which is how webkit works.
If you are getting 100% likely indicates you've set it in your CSS or style somewhere.
Comment #16
Screenack commented#2 worked, as I expected, as did #9; but #9 seems to be the "correct" solution? Using #9; thanks! (Update: I continue to need both, as elements below the slider don't push down as they need to to display correctly.)
Comment #17
bryancasler commentedsubscribe
Comment #18
rma4ok commentedto patch today
Boss! Push beta release!
Comment #19
patoshi commentedsub
Comment #20
ron williams commented#18 works for me.
Comment #21
vdupom commented#18 works for me too
Comment #22
d.cox commentedsub
Comment #23
ckngCommitted patch in #9: 463e12f
Comment #24
ckngComment #25
ckngCommitted to 6.x-2.x-dev branch