Image stretching issue when viewed on iPad

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Oct 02, 2012 3:59 pm
Reply with quote
Report this post
On the iPad, when you enlarge the image the image is stretched. It is fine on a laptop or p.c.

Can you please let me know how to fix this. The link to an example is below. Clicking (enlarging) the main picture on the iPad causes it to stretch out.


http://www.focalpointfurniture.co.uk/index.php/dining/detailed-cream-mirror-detail

Thanks
User avatar
Expert Boarder

teitbite
Wed Oct 03, 2012 12:53 pm
Reply with quote
Report this post
Hi

Please try to add this code to css:

Code: Select all
.sbox-content-image img {
    height: auto !important;
}
User avatar
Moderator

GK User
Wed Oct 03, 2012 2:32 pm
Reply with quote
Report this post
That has not fixed the problem. It still does it.
User avatar
Expert Boarder

teitbite
Wed Oct 03, 2012 6:28 pm
Reply with quote
Report this post
Hi

Ok. Please show me a screenshot of this problem. Maby I've understood it wrong.
User avatar
Moderator

GK User
Mon Oct 15, 2012 7:46 am
Reply with quote
Report this post
I have the same problem in Safari on iPhone, iPad and Mac. The image in the lightbox is stretching in width and does not fit the screen at all.

Look here: http://goo.gl/O5zU4
User avatar
Senior Boarder

teitbite
Mon Oct 15, 2012 7:47 pm
Reply with quote
Report this post
Hi

Try add this code and show me Your page than:

Code: Select all
.sbox-content-image img {
    width: 100% !important;
    max-width: 100% !important;
}
User avatar
Moderator

GK User
Wed Oct 17, 2012 6:48 pm
Reply with quote
Report this post
@teitbite

Hello, I have the same problem.

When I try to use your code in /media/system/css/modal.css, in place of the original property, but nothing change.

Can you help us? ;)

Thanks,

Jeremy
User avatar
Fresh Boarder

teitbite
Thu Oct 18, 2012 2:03 pm
Reply with quote
Report this post
Hi

Can I please see a site with code I've suggested ? Maybe a small modification to it will help.
User avatar
Moderator

GK User
Sun Oct 21, 2012 4:35 pm
Reply with quote
Report this post
Yes, here is the url: http://goo.gl/bJiW8

Thank you,

Jeremy
User avatar
Fresh Boarder

teitbite
Sun Oct 21, 2012 5:58 pm
Reply with quote
Report this post
Hi

Please try to add this to css:

Code: Select all
.sbox-content-image img {
    height: auto;
}

#sbox-window.shadow {
    height: auto !important;
    left: 25% !important;
    width: 50% !important;
}
User avatar
Moderator

GK User
Mon Nov 19, 2012 5:36 pm
Reply with quote
Report this post
teitbite wrote:Thanks ! :D

It works, I just changed the code a bit:

Code: Select all
.sbox-content-image img {
    height: auto;
}

#sbox-window.shadow {
    height: auto !important;
    left: 33% !important;
    width: 31% !important;
}
User avatar
Fresh Boarder

teitbite
Tue Nov 20, 2012 12:16 pm
Reply with quote
Report this post
Hi

Ok, no problem. Glad I could help.
User avatar
Moderator


cron