Fixes for wp attributes layout with long values

https://www.openproject.org/work_packages/14596