Fixed calculation of thumbnails panel maximum height.