Try different solvers. Only Cassowary and Sutherland work with the default constraints. The console below indicates problems with the constraints. Notice the differences between solvers. For example, Cassowary will not let you violate the constraints when rotating the blue box. Sutherland's relaxation will let you do it, but correct it when you touch something else.
Console