Commit 108e05e3 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Corrige redimensión de gráficas, respetando ejes

Refactoriza la gestión de redimensión del contenedor de gráficas, para
que los ejes tengan prioridad frente a las gráficas cargadas. Así, estas
últimas se basan en la escala actual y no en la anterior.
parent 606e212c
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -713,13 +713,17 @@ define([
			}

			this._prepareUpdateLayersPromises();
			this._resizeChartsContainer();
			this._prepareUpdateLayers();
		},

		_resizeChartsContainer: function() {

			this._updateSize();

			this.svg
				.attr("width", this._width > 0 ? this._width : 0)
				.attr("height", this._height > 0 ? this._height : 0);

			this._prepareUpdateLayers();
		},

		_prepareUpdateLayers: function() {
+1 −1
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ define([
			this._publish(axisInstance.getChannel("CLEAR"));
		},

		_resize: function() {
		_resizeChartsContainer: function() {

			this.inherited(arguments);