Resolve layout issues.