Naive attempt to fix some mobile glitches in Masonry.