Ignore resize events that don't change size.
Ignore resize events that don't change the size of the canvas or vgl
renderers.  This fixes
MODIFY
src/canvas/canvasRenderer.js
src/canvas/canvasRenderer.js
@@ -85,10 +85,13 @@ var canvasRenderer = function (arg) {
* @returns {this}
*/
this._resize = function (x, y, w, h) {
- m_this.canvas().attr('width', w);
- m_this.canvas().attr('height', h);
+ var canvas = m_this.canvas();
+ if (parseInt(canvas.attr('width'), 10) !== w ||
+ parseInt(canvas.attr('height'), 10) !== h) {
+ canvas.attr('width', w);
+ canvas.attr('height', h);
m_this._render();
-
+ }
return m_this;
};

MODIFY
src/gl/vglRenderer.js
src/gl/vglRenderer.js
@@ -137,6 +137,9 @@ var vglRenderer = function (arg) {
this._resize = function (x, y, w, h) {
var renderWindow = m_viewer.renderWindow();
+ if (x !== renderWindow.windowPosition[0] ||
+ y !== renderWindow.windowPosition[1] ||
+ w !== m_width || h !== m_height) {
m_width = w;
m_height = h;
m_this.canvas().attr('width', w);
@@ -145,7 +148,7 @@ var vglRenderer = function (arg) {
m_updateCamera = true;
m_this._render();
-
+ }
return m_this;
};

Ignore resize events that don't change size.

Ignore resize events that don't change the size of the canvas or vgl
renderers.  This fixes #826.