Fixed a very rare problem when the row ends exactly on page max height