On Sat, Jun 28, 2014 at 3:41 AM, Justin Novosad <ju...@google.com> wrote:
> Example of a problematic renderedsizechange event listener: > > canvas.width = Math.floor(canvas.renderedPixelWidth * myPixelScale); > canvas.height = Math.floor(canvas.renderedPixelHeight * myPixelScale); > I don't know why anyone would actually want to do this. This behavior seems sound at first glance, but because that arithmetic may > induce a change to the intrinsic aspect ratio due to rounding, step 3) may > not jump out of the loop during the second iteration, thus allowing the > feedback loop to keep spinning. > What are the specified values of CSS 'width' and 'height' on the canvas in your example? Rob -- Jtehsauts tshaei dS,o n" Wohfy Mdaon yhoaus eanuttehrotraiitny eovni le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o Whhei csha iids teoa stiheer :p atroa lsyazye,d 'mYaonu,r "sGients uapr,e tfaokreg iyvoeunr, 'm aotr atnod sgaoy ,h o'mGee.t" uTph eann dt hwea lmka'n? gBoutt uIp waanndt wyeonut thoo mken.o w