You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can call init on GC instance multiple times. We have to align what should happen if you call it for the second time with different dimensions or without any parameters at all.
Currently, iOS uses 0 for the dimension which is undefined and all drawings are removed on each init call.
Expected behavior
We expect that all platforms are consistent :-)
Environment
Tabris.js version: 3.0.0-beta
Device: any
OS: any
The text was updated successfully, but these errors were encountered:
As you pointed out calling getContext and thereby the internal init() call again should reset the context with the newly given dimensions. The Android client does so and reinitializes the context.
Actually calling getContext without parameters may cause errors and even crashes on both platforms. This should simply not be allowed. Calling getImageData with values that are out of bounds also behaves inconsistently.
Problem description
You can call
init
onGC
instance multiple times. We have to align what should happen if you call it for the second time with different dimensions or without any parameters at all.Currently, iOS uses
0
for the dimension which is undefined and all drawings are removed on eachinit
call.Expected behavior
We expect that all platforms are consistent :-)
Environment
The text was updated successfully, but these errors were encountered: