Fixing this complicates the design of the tab and the theme. On each tab click we would need to trigger a global change event that should make the whole JS file to be executed. This is not just an issue of post snippets and tab but also that of any other content that relies on JS like the stats, portfolio etc. that potentially can be inserted into a tab or accordion.
I logged in and added this piece of code at line number 494 of js/main.js file –
from
$("ul.tabs").tabs(".pane");
to
$("ul.tabs").tabs(".pane", {
onClick: function(event, tabIndex) {
var html_content = $('.js-isotope');
// layout Isotope again after all images have loaded
html_content.imagesLoaded(function () {
html_content.isotope('layout');
});
}
});
and this test page on your site look good now –
http://www.scuoladipaloalto.ch/test-page/