update constraints after position changed