• I’m having an issue where article titles and summaries (which usually appear beneath article thumbnails) are not displaying correctly on the home page. This problem occurs sporadically. When it does, it seems like the article summary is being rendered behind the article thumbnail; during a page load it is possible to see the summary content load in just before the thumbnail is rendered right on top of it. Resizing the viewport in any way causes the summary info to be ‘pushed down’ to its correct location, until the page is refreshed. I can confirm this behavior occurs in Chrome 31 and Safari 7.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter discosadness

    (@discosadness)

    Update: After some digging, I believe this issue is being caused by an incorrect height being set on the div element defined on line 15 of index.php in the Pieces source. This might be a bug with Isotope, or how it’s implemented. Manually adjusting this div’s height attribute, or setting overflow to ‘show’ reveals that the hidden summaries are actually in the correct place, but were not being shown because the row’s height was set too small.

    I’m having the same issue and it definitely looks like a JS issue as when I reload the page, the issue is fixed.

    Any bugfix?

    @discosadness

    What values did you change on index.php?

    Thread Starter discosadness

    (@discosadness)

    Update: I have managed to find a very hacky workaround for this bug by wrapping the call to the main Isotope function in a setTimeout(). This allows sufficient time for the browser (re)paint to complete before Isotope is called. This way, Isotope will always set the correct height for rows. I tested several different delays, and 250ms seems to be the shortest delay that prevents the bug from happening.

    This change was made to the main scripts.js file in the Pieces source. Here is what it looks like, for anyone wanting to copy/paste this solution:

    jQuery(document).ready(function($) {
    	setTimeout(function() {
    		$('.isotope').isotope({
    			itemSelector: '.isotope-item',
    			layoutMode: 'sloppyMasonry'
    		});
    	}, 250);
    });

    It should be noted that this is not a permanent or even desirable solution to this bug, but a temporary workaround until it is solved.

    Thanks =)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Article summaries do not always display correctly’ is closed to new replies.