Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorseb835
    • CommentTimeMar 10th 2010 edited
     
    Hi Ian,

    In the new A3 page format, it seems as though footer images set with CSS background doesnt quite work. Instead of displaying the entire length of my 1500 x 50px image, it suddenly starts repeating near the right edge: see image here. This may also happen with the header image, though I have not had the opportunity to test this yet.

    Could you please have a look at this, and hopefully its an easy fix for you.

    Thanks for all your efforts,
    Seb
    • CommentAuthorIanBack
    • CommentTimeMar 10th 2010
     
    Seb,

    I'm away for a few days, so only had a chance to take a quick look. I'll look in more detail when I'm back.

    Try searching for:

    $sizesarray = $this->Image(

    You should find 5 instances. 3 of them need editing: change the 9th parameter from false to true.

    This was constraining the image to the maximum available size (inside margins and padding).
    • CommentAuthorseb835
    • CommentTimeMar 10th 2010
     
    Searching for that does indeed give 5 results. However, only two of the results have "false" for their 9th parameter. I tried setting these to "true", but that has no effect on the footer image.

    I tried changing some of the other values with some very strange effect, but again, not the desired effect of a stable non-repeating footer image.

    Any further help you can give when you are back is very much appreciated indeed.

    Thanks,
    Seb
    • CommentAuthorIanBack
    • CommentTimeMar 12th 2010
     
    Very sorry - wrong way round! The 9th parameter should be false in all 5 occurrences.
    • CommentAuthorseb835
    • CommentTimeMar 15th 2010
     
    No problem.

    I tried this, but unfortunately it ruins all my other footers. My other footers use large graphics so that they dont look pixelated when printing. Turning those params to false means that the graphic no longer fits (shown as 1 to 1 scale).

    Is there anything else we can do? Its just my A3 landscape pages where the image doesn't show right - everywhere else is perfect.

    Thanks,
    Seb
    • CommentAuthorIanBack
    • CommentTimeMar 25th 2010
     
    Seb,

    Please see and download version 4.4

    Previous versions have resized background-images to fit, if they are wider or higher than the page or containing block. This behaviour is NOT consistent with CSS / browsers, which never resize background-images. So I have changed the default behaviour to NOT resize.

    But I have added a custom CSS property "background-image-resize": supported on BODY, DIV+ (block elements) and TD
    0 - No resizing (default)
    1 - Shrink-to-fit w (keep aspect ratio)
    2 - Shrink-to-fit h (keep aspect ratio)
    3 - Shrink-to-fit w and/or h (keep aspect ratio)
    4 - Resize-to-fit w (keep aspect ratio)
    5 - Resize-to-fit h (keep aspect ratio)
    6 - Resize-to-fit w and h

    Setting "background-image-resize:3" or 1 should give you the "old" look. You can use this in a style sheet or in-line CSS.
    • CommentAuthorseb835
    • CommentTimeMar 29th 2010
     
    Ian,

    Thank you very much - that seems to have fixed my issue. I have to use option 1 to get the same results as in v4.3.

    Brilliant work, thanks very much again!

    Seb