1up-lab / contao-full-background-images

Full background images extension for the Contao Open Source CMS
MIT License
4 stars 3 forks source link

Image positioning #23

Closed bytehead closed 9 years ago

bytehead commented 9 years ago

Options for background image positioning

ways2web commented 9 years ago

what is the current positioning?

bytehead commented 9 years ago

center center.

ways2web commented 9 years ago

yes...right. thx!! but on desktop browser only :/

bytehead commented 9 years ago

The background image is center center by default on every screen size. You can disable centeredX oder centeredY in the settings, then its left top positioned.

ways2web commented 9 years ago

ok...my tests on a clean site without any stylesheets shows another result... maybe.... its a problem with portrait and landscape (android) directly in jquery-backstretch.. i will look for issues

bytehead commented 9 years ago

that's actually weird. do you have a link to this install?

ways2web commented 9 years ago

of course.. (link removed) - its only one document (now with a few styles). you can see the true midpoint with dekstop browsers...around empire state building. mobile view use starts "left center".. on my two devices

bytehead commented 9 years ago

I do actually see this on your site:


    window.addEventListener("load-fullbg", function() {
        ;(function($){
            $(document).ready(function() {
                $.backstretch(
                    ["files/backgrounds/background.jpg"],
                {
                    duration: 0,
                    fade: 0,
                    nav: false,
                    navClick: false,
                    navPrevNext: false,
                    centeredX: false,
                    centeredY: false
                });
            });
        })(jQuery);
    });

Try enabling centeredX and centeredY in your settings.

ways2web commented 9 years ago

ahh... in the root-document are diffrent options to the "regular site type" the start-position options was deactivated :+1:

bytehead commented 9 years ago

:+1: There is fore sure some room for improvement on the docs...