Getting Bootstrap Tabs to Play Nice with Masonry

Thaks Maria, it was a really helpful tutorial; I’m using Masonry in a proyect and was having this problem.

Since Bootstrap has changed a little bit I think you can update the tutorial with the new code availale on the Bootstrap documentation.

I used this code and brought me the same results:

$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
e.preventDefault()
  $container.imagesLoaded( function () {
		$container.masonry({
			itemSelector: '.item',
			columnWidth: 195,
		});
            });
})