Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip rendering to a canvas with zero dimensions (#805)
If the width or height is 0, the element likely isn't mounted into the DOM. This usually isn't a problem, but if we end up resizing the layout, we would resize it based on a size of 0, which would break the entire layout. This happened here: LiveSplit/LiveSplitOne#881 Rendering the layout with a size of 0 is also a waste of time, so this ends up benefiting us in multiple ways.
- Loading branch information