meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.55k stars 404 forks source link

caman on phonegap HiDpi issue #80

Closed csteinbacher closed 11 years ago

csteinbacher commented 11 years ago

If you have an inline property on the canvas element that sets the size, for instance <canvas id="something" height="400" width="400"></canvas>

And you run it in PhoneGap on iOS, it will detect a high res screen, but render the canvas incorrectly and causes the canvas to display nothing it all, it tries to set the size differently from its inline sizing.

If you are having issues with the canvas displaying nothing after a render, set a data attribute to data-caman-hidpi-disabled="true"

no so much of a bug as a gotcha, but it took me a few hours to figure out.

meltingice commented 11 years ago

This should be fixed in the latest version.

Montrazul commented 9 years ago

We have the 2015. I downloaded the latest version and this is not fixed.