TMDM-7962 : Multiple elements aren't displayed while using CustomLayout