Algorithm change, initial min-height adjustment

* work out optimal amout of cells to be out of view before reordering
* Initial min-height was incorrect