Skip to content

Library crashes if height of viewer element is zero #239

@oscarlorentzon

Description

@oscarlorentzon

The bearing component does not handle the case when the aspect of the viewer element is infinity (non-zero width and zero height in RenderMode.Fill mode) causing the virtual DOM to throw exception for the camera fov indicator SVG.

Also the render service does not handle the case when the viewer element width and height are both zero. That results in NaN value for the aspect which exceptions in the virtual DOM.

These cases need to be handled. The viewer element should be able to be zero sized at any time and when resized it should behave correctly.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions