Fix #10527 (put auto-generated layout into scroll area)