Implement percentage heights for block flows

Fixes #2029
Merge pull request #3339 from mbrubeck/percent-height

Implement percentage heights for block flows. r=SimonSapin