fix examples. Add workarounds for header and footer reference size for flow layout