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
I have searched and made sure there are no existing issues for the issue I am filing
I have searched the existing issues
Description
NOTE: Maybe this issue is not directly related to Titanium SDK but to the Canvas - HTML5 framework.
A canvas within a local webview is not sized correctly if its size is specified as a percentage. This applies both to settings via CSS and to the height and width attributes of the canvas itself.
it's "kind of" by design as the content/body/html doesn't have a height so it can't handle percentage values. It shrinks to the content (and yes, the background color is still the whole webview 🤷 )
I have searched and made sure there are no existing issues for the issue I am filing
Description
NOTE: Maybe this issue is not directly related to Titanium SDK but to the Canvas - HTML5 framework.
A canvas within a local webview is not sized correctly if its size is specified as a percentage. This applies both to settings via CSS and to the height and width attributes of the canvas itself.
FIXING WORKAROUND:
Programmatically set the dimension of the canvas in pixels.
If you are using the Chart.js plugin instead use:
while setting maintainAspectRatio and responsive to false inside the chart options:
Expected Behavior
Canvas sizes correctly
Actual behavior
Height is reduced or the canvas looks like a square, same height as width!
Reproducible sample
X
Steps to reproduce
X
Platform
Android
SDK version you are using
12.4.0.GA
Alloy version you are using
No response
The text was updated successfully, but these errors were encountered: