Guard against setting row or column count to 0 while dragging to resize

Calculate new row/column count based on drag position and only update
the map if the count is greater than zero.