Updated change constraint method to only allow the change of the width.