# Resize selection boxes on figure resizing

**URL:** <https://community.plotly.com/t/resize-selection-boxes-on-figure-resizing/54243>\
**Category:** plotly.js\
**Created:** [June 28, 2021, 9:58am UTC](https://community.plotly.com/t/resize-selection-boxes-on-figure-resizing/54243 "2021-06-28T09:58:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlisthenewcool](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mlisthenewcool](https://community.plotly.com/u/mlisthenewcool)\
**Post date:** [June 28, 2021, 9:58am UTC](https://community.plotly.com/t/resize-selection-boxes-on-figure-resizing/54243/1 "2021-06-28T09:58:30Z")

</div>

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 ?
