Ngl: Canvas Sizing

Created on 18 Nov 2017  路  1Comment  路  Source: nglviewer/ngl

How do you get NGL to fill its container? I am getting a canvas that's smaller then it's viewport. In addition, the area that is being drawn on is smaller than the canvas. So I have two sets of "borders" and no idea where they came from.

question

Most helpful comment

Calling stage.handleResize() should make the NGL canvas the size of its parent container.

>All comments

Calling stage.handleResize() should make the NGL canvas the size of its parent container.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pconesa picture pconesa  路  5Comments

garyo picture garyo  路  5Comments

martingraham picture martingraham  路  4Comments

ghost picture ghost  路  4Comments

LivC182 picture LivC182  路  6Comments