Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with position when append element from an external page #153

Closed
caprikorn opened this issue Jun 13, 2014 · 0 comments
Closed

problem with position when append element from an external page #153

caprikorn opened this issue Jun 13, 2014 · 0 comments

Comments

@caprikorn
Copy link

Hi,

I tried to append element from an external page:

jQuery(window).on('load', function () {
var $ = jQuery;

var $container = $('#container');
    $container.masonry({
        itemSelector: '.block',
        isFitWidth: true,
        columnWidth: 300,
        isAnimated: true,
        gutter: 3
    });

});

jQuery('#button').click(function () {

jQuery.get('page.html', function (data) {

    var $container = $('#container');

    var $moreBlocks = jQuery(data).filter('li');

    $container.append($moreBlocks);

    $container.masonry('appended', $moreBlocks);

});

});

...elements are appended correctly, but are all with top like "0"... someone can help me?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant