# Buttons on my canvas move as I resize or maximize the browser window. How do I stop this?

**URL:** <https://discourse.processing.org/t/buttons-on-my-canvas-move-as-i-resize-or-maximize-the-browser-window-how-do-i-stop-this/19687>\
**Category:** Coding Questions\
**Created:** [April 12, 2020, 4:24am UTC](https://discourse.processing.org/t/buttons-on-my-canvas-move-as-i-resize-or-maximize-the-browser-window-how-do-i-stop-this/19687 "2020-04-12T04:24:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [April 12, 2020, 5:15am UTC](https://discourse.processing.org/t/buttons-on-my-canvas-move-as-i-resize-or-maximize-the-browser-window-how-do-i-stop-this/19687/4 "2020-04-12T05:15:51Z")

</div>

- Sketch’s main canvas reference is inside undocumented variable _\_renderer_.
- Its coordinates are _\_renderer.x_ & _\_renderer.y_.
- Its dimensions are _width_ & _height_.
- Use those values above as base for method [p5.Element::**position()**](https://p5js.org/reference/#/p5.Element/position).

---

_[View the full topic](https://discourse.processing.org/t/buttons-on-my-canvas-move-as-i-resize-or-maximize-the-browser-window-how-do-i-stop-this/19687)._
