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
Wrong image resizing on Android tablets and mobiles #31
Comments
Thanks. |
Can you check it with iPhone/iPad? I don't have those, but I'm guessing the bug is also there. |
@DePalmo FYI the bug is not present on iOS I have a Android/iOS specific internal app that used vegas and ran in to this issue. I ended up implementing a similar full screen effect using the pure css techniques outlined in this article http://css-tricks.com/perfect-full-page-background-image/ and the accepted answer in this SO question http://stackoverflow.com/a/9724124 This might be a good solution if you have good css support on targeted platforms. |
@jaysalvat you can use http://www.browserstack.com to see the problem. i ran into the problem when i use samsung galxy s3. but with browserstack you can see scaling problems on several mobile devices. do you think you will fix that? |
I have noticed the same issue. On a iPhone is the background with and height perfect, but not on a android phone. Is there a simple solution for this little bug? |
Hello. I still not have an Android phone to fix it. It's an open-source project you know. You can all try to fix the bug and provide a fix for the community :) |
Hi there, |
Hi, Problem is that android devices interprates "position: fixed" wrong. The solutuin is to add whole vegas images in another container which is positioned fixed and images should be positioned absolute then. I added this line at 15: (right after init) if ($(".vegas-container").length == 0){ $('body').prepend($("<div></div>").addClass('vegas-container').css({ position: "fixed", left: "0px", top: "0px", width: "100%", height: "100%" })) } And then changed line: $new.hide().prependTo(body).fadeIn(options.fade, function() { to: $new.hide().prependTo(".vegas-container").fadeIn(options.fade, function() { And ofc changed the images positioning from: $new.css({ position: "fixed", left: "0px", top: "0px" }). To: $new.css({ position: "absolute", left: "0px", top: "0px" }) Solution written quickly and not tested precisely. |
Hi, sadly this hack didn't work for me. |
Hello I found the same problem of other users. Have you any suggestions? |
Thanks for the info. I've started to work on Vegas v2 which will drop support of old browsers and will use background-size: cover. I hope it will work better on those devices. |
As title says, when this plugin is used on PC it's great and I really love it, but when I tried to use it on my Android tablet device, the backgrounds are all wrongly stretched. I tested in landscape and portrait view. Then just out of curiosity I tested the website on my android mobile and there was the same problem.
The issue can also be seen on your website.
The text was updated successfully, but these errors were encountered: