clean and fix issue that constraints not found and will occurred to set duplicate constraints
get the maximum edge of subview to set view to fit