Resize selection boxes on figure resizing

Selection boxes have two objects : points & range, the latter offering x and y arrays (i.e. x = [5, 5], y=[4,4]). Whenever we resize the whole figure, how should we resize the selection boxes ?