Snap the resizable element to a grid. Set the dimensions of grid cells (height and width in pixels) with the grid option.
grid