-
AuthorPosts
-
March 30, 2012 at 6:21 am #175580
The images on the mobile handheld/Iphone are not resized properly. The height is the same but the width is too narrow.
I found a couple of threads but similar issue but no formal resolution.http://www.joomlart.com/forums/topic/image-resizes-on-mobile-devie-ipod-iphone/
I am pretty sure the problem is with this script but I can’t find the correct way to code it.
can someone help?
thank you!
<script language=”javascript” type=”text/javascript” src=”<?php echo $this->templateurl(); ?>/js/ja.script.js”></script>
<!– Menu head –>
<?php if (($jamenu = $this->loadMenu())) $jamenu->genMenuHead (); ?><script type=”text/javascript”>
//update image size
function updateOrientation() {
var maxwidth = 200;
var orient = window.orientation
if (orient == 90 || orient == -90) {
bdcls = ‘landscape’;
maxwidth = Math.round(480*40/100); //IPhone
} else {
bdcls = ‘portrait’;
maxwidth = Math.round(screen.width*40/100);
}
document.body.className = bdcls;
//update images width
images = document.getElementsByTagName (‘img’);
for(i=0;i<images.length;i++) {
image = images;
if (!image._orgwidth) {
image._orgwidth = image.offsetWidth;
}
if (image._orgwidth > maxwidth) {
image.width = maxwidth;
} else if (image._orgwidth > image.offsetWidth) {
image.width = image._orgwidth;
}
}
window.scrollTo(0,1);
}
</script>pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
March 30, 2012 at 6:32 am #446424Hi
The images on your site seen from an iPhone are correctly showed, the only things that is too large was the videos, check settings for videos maybe you are using an external plugin and set the correct parameters there
March 30, 2012 at 7:07 am #446429thanks – I changed the ratio from 40/100 to 100/100 and it does look better, but some images are still too tall I believe.
Is there a way to adjust the height?
I will look into the video.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
March 30, 2012 at 8:17 am #446433I still see your site as before look at these two images as you can see the problem is in the video width that enlarge the entire page, i don’t know how that video is configured but you need to manage it
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 2 voices, and was last updated by pavit 12 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum