Add is_spacer to the layout api.py