TIP: (Mobile) Web projects: Javascript/canvas calculates wrong size on FIRST run, better on second? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

TIP: (Mobile) Web projects: Javascript/canvas calculates wrong size on FIRST run, better on second?

It's the soft keyboard. If it's up, it will skew size calculations and put your scripts in a weird state. Make it go away* before you tap [OUTPUT] or [Run] and the output page will be right-sized. * on my keyboard I just tap 'back' once.

27th Mar 2017, 7:45 PM
Kirk Schafer
Kirk Schafer - avatar
1 Answer
+ 10
Thx ^^
31st Mar 2017, 5:41 PM
Tashi N
Tashi N - avatar