layout: Handle floated blocks with percentage heights correctly.

Improves the top menu in Wikipedia.