kombai / freewall

Freewall is a cross-browser and responsive jQuery plugin to help you create grid, image and masonry layouts for desktop, mobile, and tablet...
MIT License
1.85k stars 375 forks source link

limit height of the wrapper and use jquery.scroll.to #77

Open pateljatin opened 10 years ago

pateljatin commented 10 years ago

Hi,

This is an awesome plugin! Is there a way to limit the entire wall towards certain height and then use jquery.scroll.to to scroll within that wall (div) such as wrapper?

freewall.free-wall

    #mainwrapper

        ....rest of the images layout to show images....

script

    var wall = new freewall("#freewall");

    wall.reset({

        selector: '.cell',

        animate: false,

        delay: 50,

        onResize: function(){

            wall.fitWidth();

        }

    });

    wall.fitWidth();

    // for scroll bar appear;

    $(window).trigger("resize");

            $('#mainwrapper').ScrollTo();

Much appreciated- Jatin