Processing Community Forum
Buttons on my canvas move as I resize or maximize the browser window. How do I stop this?
p5.js
Coding Questions
GoToLoop
April 12, 2020, 5:15am
4
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()
.
How to position button relative to canvas?
show post in topic
Related topics
Topic
Replies
Views
Activity
How to position button relative to canvas?
Coding Questions
2
733
September 28, 2021
Text appears in different positions
Coding Questions
1
302
April 18, 2020
Move inside div and center on div not page
Coding Questions
1
294
July 28, 2019
Placement of sliders outside canvas
Coding Questions
8
3533
March 27, 2019
Using the canvas as the parent of an element makes it disappear
p5.js
11
947
July 22, 2018