use the flow layout api for getting header and footer dimensions
forgot to actually change superclass
update tests to use size instead of length
Merge pull request #16 from 1aurabrown/change-superclass

@orta => use the flow layout api for getting header and footer dimensions