Canvas size limit

28 views
Skip to first unread message

Tim Woodruff

unread,
Aug 16, 2019, 6:58:23 PM8/16/19
to mitappinv...@googlegroups.com
Is there a limit on canvas size? I have a Horizontalscrollarrangement with a canvas inside. The canvas is 6000 pixels wide and if I make it any bigger, the companion app crashes. If I make it over 300 pixels high, same thing. I am making a scrollable graph to track some data. 

TimAI2

unread,
Aug 16, 2019, 7:13:02 PM8/16/19
to MIT App Inventor Forum
As far as I know the canvas size is limited due to memory availability/limits, probably total area (width x height)

Others have found that a canvas or more than 2.5 / 3 x screen size can cause problems. So some experimentation may be necessary.


Do you have the same issue when the canvas is not in the Horizontal scroll arrangement

Consider content replacement logic as opposed to everything on one ???

Tim Woodruff

unread,
Aug 16, 2019, 8:13:09 PM8/16/19
to MIT App Inventor Forum

blocks.png

Good idea. Lowered the canvas size to the width of the screen and update data as it's scrolled, and it was simple. Thanks.
Reply all
Reply to author
Forward
0 new messages