Resize ()
    {
        let width = this.parentElement.clientWidth;
        let height = this.parentElement.clientHeight;
        this.viewer.Resize (width, height);
    }
This method must be called when the size of the parent element changes to make sure that the
context has the same dimensions as the parent element.