diff --git a/packages/perspective-viewer/src/js/viewer.js b/packages/perspective-viewer/src/js/viewer.js index 0e491e1d80..e45421e7e9 100755 --- a/packages/perspective-viewer/src/js/viewer.js +++ b/packages/perspective-viewer/src/js/viewer.js @@ -65,7 +65,7 @@ class PerspectiveViewer extends ActionElement { this._show_config = true; this._show_warnings = true; this.__render_times = []; - window.addEventListener("load", this._resize_handler); + this._resize_handler = this.notifyResize.bind(this); window.addEventListener("resize", this._resize_handler); }