Skip to first unread message

Bert Langan

unread,
Aug 3, 2018, 10:05:52 PM8/3/18
to MIT App Inventor Forum
I'm pulling my hair out over this, when my screen initializes the web viewer that I use to display a chart is all zoomed in and only shows the top left corner of the chart. As soon as I reload the chart it displays as the proper size. I've googled this, watched all sorts of YouTube videos, tried adding a delay before loading the chart, but I'm stuck. Any help would be greatly appreciated.

Bert Langan

unread,
Aug 3, 2018, 10:09:22 PM8/3/18
to MIT App Inventor Forum
Here's the screenshots

https://imgur.com/a/5rMrymv

Evan Patton

unread,
Aug 3, 2018, 10:50:09 PM8/3/18
to MIT App Inventor Forum
Hi Bert,

Have you tried setting a meta viewport tag to scale the page to s preset value?

Regards,
Evan

TimAI2

unread,
Aug 4, 2018, 4:04:48 AM8/4/18
to MIT App Inventor Forum
What are you using to generate the chart?

Bert Langan

unread,
Aug 4, 2018, 9:37:16 AM8/4/18
to MIT App Inventor Forum
I'm using google charts so unfortunately I don't have access to edit the css/html of the page that is being displayed.

Bert Langan

unread,
Aug 4, 2018, 9:39:45 AM8/4/18
to mitappinv...@googlegroups.com
I'm using the chart maker extension which displays a google chart in a webviewer based on input from the user.
https://github.com/MillsCS215AppInventorProj/chartmaker

TimAI2

unread,
Aug 4, 2018, 12:36:33 PM8/4/18
to MIT App Inventor Forum
"I'm using the chart maker extension"

Bert Langan

unread,
Aug 4, 2018, 8:28:16 PM8/4/18
to MIT App Inventor Forum
You could be right.  Thank you for the link...I'll look in to other options but I really get the feeling that the issue is with how the webviewer renders on initialization vs. how the chart maker extension is working.  It seems as though the webviewer loads the chart proportionally as it would if the webviewer component took up the full screen.  Once it reloads everything works fine and the proportion looks great (see screenshots above).

TimAI2

unread,
Aug 5, 2018, 4:54:20 AM8/5/18
to MIT App Inventor Forum
Have you tried loading it twice, first time with webviewer not visible?

Bert Langan

unread,
Aug 5, 2018, 9:32:55 AM8/5/18
to MIT App Inventor Forum
I did try that to no avail, but I'm happy to report that I got it to work by placing it in a vertical arrangement with a fixed height.
Reply all
Reply to author
Forward
0 new messages