fixed problem with non-scalene triangles and fixed positioning