fixed layout when using generated customView