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
getComputedStyle in Sizeable#actualSize is what causes it. Instead, let's listen to size changes on the root Scene, then we can calculate proportional sizes using plain math without hitting the DOM's getComputedStyle method. This is what we need to do anyways because when rendering to WebGL only (f.e. if DOM rendering were turned off when that option is available in the future), then there may be no DOM elements from which to call getComputedStyle on anyways.
The text was updated successfully, but these errors were encountered:
trusktr
changed the title
Get rid of forced reflows inside of animation loop
Get rid of forced reflows inside of the animation loop when calculating size.
Jul 23, 2016
to Observable), then they re-render if necessary (f.e. if proportionally
sized, etc). Proportional sizing is handled by the library rather than
by percentage based CSS sizing. This sets us up for WebGL sizing in the
future...
closes#56#19
getComputedStyle in Sizeable#actualSize is what causes it. Instead, let's listen to size changes on the root Scene, then we can calculate proportional sizes using plain math without hitting the DOM's getComputedStyle method. This is what we need to do anyways because when rendering to WebGL only (f.e. if DOM rendering were turned off when that option is available in the future), then there may be no DOM elements from which to call getComputedStyle on anyways.
The text was updated successfully, but these errors were encountered: