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 Safari positioning elements #381

Closed
mbades opened this issue Feb 5, 2013 · 3 comments
Closed

Problem Safari positioning elements #381

mbades opened this issue Feb 5, 2013 · 3 comments

Comments

@mbades
Copy link

mbades commented Feb 5, 2013

hello is there a way to invoke a refresh of the container after the page loads? I happen with safari elements are merged, not positioned correctly, slightly enlarging the window elements are positioned normally.

http://mbades.com/client/testing998887799fkc_cm

@mbades
Copy link
Author

mbades commented Feb 5, 2013

Schermata 02-2456329 alle 16 51 53
Posizione sbagliata visibile subito al caricamento della pagina con safari

Schermata 02-2456329 alle 16 52 05
Posizione corretta, si posizionano allargando poco la finestra o cliccando su un link non linkato

@desandro
Copy link
Member

desandro commented Feb 5, 2013

Sure. It could be something like this

$( function() {
  // start isotope first on document ready
  var $container = $('#my-container-id');
  $container.isotope({
    // options...
  }).imagesLoaded( function() {
    // trigger again after images have loaded
    $container.isotope('reLayout');
  });

  // use as a last-resort
  $( window ).load( function() {
    // trigger again after everything has loaded
    $container.isotope('reLayout');
  });

});

@desandro desandro closed this as completed Feb 5, 2013
@mbades
Copy link
Author

mbades commented Feb 5, 2013

good!! thanks!

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

No branches or pull requests

2 participants