Double click to resize box is broken

double clicking the bottom right corner doesn’t snap the box correctly