Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • syncrocrick Friend
    #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 Moderator
    #446424

    Hi

    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

    syncrocrick Friend
    #446429

    thanks – 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 Moderator
    #446433

    I 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


    1. IMG_0142
    2. IMG_0143
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