New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overlay sometimes didn´t appear in Chrome #187
Comments
I can confirm. This used to work on older version of Chrome. Right now the lightboxOverlay appears only after resizing the window. |
The only fix that I found for this so far was to set the fadeDuration to 0. |
I too can confirm this error. Setting the fade duration to 0 does work but looks really bad when closing the lightbox. Replace: This does the trick! |
Thanks guys, |
I'm able to recreate this issue as well. I'm using Chrome v33.0.1750.152 in OSX. This is a tricky one. 🐛 The CSS values for the overlay at the start and end of the fade seem to be correct but Chrome sometimes does and sometimes doesn't render the element. Interestingly, I see this problem more often on my Macbook Pro w/Retina display versus my non-retina external display. If you resize the window or have Developer Tools open and mouse over an element in the Elements panel the overlay will appear. I'm going to continue investigating this issue. If anyone makes progress, please post here. Thanks! |
I'm having this issue also. Would be great to hear when there is a solution as I'm using it for a site that's ready to launch! Thanks. |
Solved the mystery on mine at least. Don't know why but it was being caused by having a line-height set on the body tag in the main css doc for my site. When I removed this it fixed the issue. |
What is interesting that such issue doesn't replicated for me on lighbox main page http://lokeshdhakar.com/projects/lightbox2/ |
This might be related to be a Chrome browser bug. The reported bug and some discussion: A fix is in the Chrome nightlies and will hopefully appear in Chrome stable release soon. Does someone have steps to recreate this issue consistently? |
I have found way to partly overcome this Chrome bug. In lightbox.js after line 188 this.$overlay.fadeIn(this.options.fadeDuration); I have putted those lines: // Select current height with jQuery
var TmpHeigh = this.$overlay.css('height');
// Set new css property value with 1px less to force Chrome touch the element.
this.$overlay.css('height', parseFloat(TmpHeigh)-1); When Chrome fails to animate the overlayer, the change of css will force Chrome to show the layer as it is. The final flow of window is not so pretty, but at least the overlay appears. This change also seems to has not impact on another browsers, which are capable to animate the overlay. |
I have the same issue, overlay not appearing in Chrome Version 33.0.1750.154 m Windows 8.1, but i do see also on the lightbox main page it is working.. |
Something similar is happening to me. When i open the site in chrome the overlay works just as it should. But when i include the Google map API javascript in my site overlay doesn't show until i resize the browser window. |
Problem with lightbox. |
In my case only setting |
Any updates regarding this, is there a way to keep the fade effect but show the overlay? |
Adding this css rule |
This did it! Did you notice any side effects of this? |
So far I haven't noticed any |
The
This worked perfectly to hide that extra scroll that appears in the overlay. |
That's fix it in chrome only, firefox,safari, ie11 still have these scrollbars @media screen and (-webkit-min-device-pixel-ratio:0) |
Can you attach a screenshot of the double scrollbar because I cannot replicate it, thanks. |
|
I fixed the overlay rendering in chrome using webkit specific CSS. No other browsers are affected ;)
-- Written in LESS -- |
Hello,
I have problem with lightbox overlay on my web page. It works fine in IE, FF, but in Chrome sometimes didn´t apper. I read all this issues, but I didnť find the solution.
I tested it with the F12 console and it seems everything OK. The "display: none" and "display: block" changes how should.
In the case, that overlay isn´t visible, it just change size of the window, or move mouse in the console over different div and this "refreshing" of page will appear the overlay.
Can you help me please?
P.S. I had a problem with overlay too, that its hight wasn´t over whole page, but I fixed it, when I change overlay position from absolute to fixed in css.
Do you think, it is some relationship between this bugs?
The text was updated successfully, but these errors were encountered: