create a constraint by click&drag