Commit 13d74af6 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Mejora handle, limita redimensión máxima en altura

parent 32119122
Loading
Loading
Loading
Loading
+22 −5
Original line number Diff line number Diff line
@@ -98,18 +98,16 @@ define([

			this._emitEvt('LOADING');

			var containerClass = this.windowContainerClass,
				resizeHandleNode;
			var containerClass = this.windowContainerClass;

			if (this.resizable) {
				containerClass += '.' + this.windowResizableClass;
				resizeHandleNode = put('i.' + this.resizeHandleClass);
			}

			this._windowNode = put(node, "div." + containerClass);

			if (resizeHandleNode) {
				put(this._windowNode, resizeHandleNode);
			if (this.resizable) {
				this._createWindowResizeComponents();
			}

			if (!this.noTitleWindow) {
@@ -121,6 +119,24 @@ define([
			this._addNodeListeners();
		},

		_createWindowResizeComponents: function() {

			this._limitMaxHeightToAvailableHeight();

			var resizeHandleNode = put('i.' + this.resizeHandleClass);
			put(this._windowNode, resizeHandleNode);
		},

		_limitMaxHeightToAvailableHeight: function() {

			var currMaxHeight = window.innerHeight;

			if (this._lastMaxHeight !== currMaxHeight) {
				this._lastMaxHeight = currMaxHeight;
				domStyle.set(this._windowNode, 'max-height', currMaxHeight + 'px');
			}
		},

		_createWindowTitle: function() {

			this._windowTitleNode = put(this._windowNode, "div." + this.windowTitleClass);
@@ -404,6 +420,7 @@ define([

		_resize: function() {

			this._limitMaxHeightToAvailableHeight();
			this._prepareToEmitResize();

			this.inherited(arguments);
Compare 14562e29 to 55cf3d9b
Original line number Diff line number Diff line
Subproject commit 14562e294201043f3632e0046c7c81d17159f45a
Subproject commit 55cf3d9ba3a0204309a1a87c0b0136401910c212