Using the left-side of the triangle as the base, and the height from the left-side to the bottom-right corner:
We know the length of the diagonal is as we are using a centimetre grid, so we can create an isosceles triangle with side lengths 1 and our unknown length, we can then use Pythagorean Theorem to work out our unknown side length.