Preserve LayoutParams of header layout