@ardimedia/angular-portal-azure 0.2.124 → 0.2.125

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/apn.d.ts +3 -1
  2. package/apn.js +17 -9
  3. package/package.json +2 -1
package/apn.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="jquery" />
1
2
  /// <reference types="angular" />
2
3
  /// <reference types="angular-resource" />
3
4
  /// <reference types="angulartics" />
@@ -44,6 +45,7 @@ declare namespace angularportalazure {
44
45
  pathSender: string;
45
46
  }
46
47
  }
48
+ declare var $: JQueryStatic;
47
49
  declare namespace angularportalazure {
48
50
  class Blade extends angularportalazure.UserControlBase {
49
51
  constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
@@ -153,7 +155,7 @@ declare namespace angularportalazure {
153
155
  onCommandSwap(): void;
154
156
  /** Obsolete */
155
157
  bladeClose(): void;
156
- private getGridHeight(blade);
158
+ private setBladeContentHeight();
157
159
  }
158
160
  }
159
161
  declare namespace angularportalazure {
package/apn.js CHANGED
@@ -151,17 +151,16 @@ var angularportalazure;
151
151
  }());
152
152
  angularportalazure.UserControlBase = UserControlBase;
153
153
  })(angularportalazure || (angularportalazure = {}));
154
- /// <reference types="angular" />
155
- /// <reference path="debug.ts" />
156
- /// <reference path="useraccount.ts" />
157
- /// <reference path="portalservice.ts" />
158
- /// <reference path="usercontrolbase.ts" />
159
- /// <reference path="iaddbladeeventargs.ts" />
160
154
  var __extends = (this && this.__extends) || function (d, b) {
161
155
  for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
162
156
  function __() { this.constructor = d; }
163
157
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
164
158
  };
159
+ /// <reference path="debug.ts" />
160
+ /// <reference path="useraccount.ts" />
161
+ /// <reference path="portalservice.ts" />
162
+ /// <reference path="usercontrolbase.ts" />
163
+ /// <reference path="iaddbladeeventargs.ts" />
165
164
  var angularportalazure;
166
165
  (function (angularportalazure) {
167
166
  var Blade = (function (_super) {
@@ -284,6 +283,7 @@ var angularportalazure;
284
283
  _this.portalService.bladeArea.blades[index] = _this;
285
284
  }
286
285
  });
286
+ _this.setBladeContentHeight();
287
287
  return _this;
288
288
  }
289
289
  Object.defineProperty(Blade.prototype, "path", {
@@ -435,9 +435,17 @@ var angularportalazure;
435
435
  };
436
436
  //#endregion
437
437
  //#endregion
438
- Blade.prototype.getGridHeight = function (blade) {
439
- blade.bladeContentHeight = $('.fxs-blade-content').height();
440
- return blade.bladeContentHeight - 120;
438
+ Blade.prototype.setBladeContentHeight = function () {
439
+ var that = this;
440
+ // http://stackoverflow.com/questions/4298612/jquery-how-to-call-resize-event-only-once-its-finished-resizing
441
+ var id;
442
+ $(window).resize(function () {
443
+ clearTimeout(id);
444
+ id = setTimeout(function () {
445
+ that.bladeContentHeight = $('.fxs-blade-content').height();
446
+ console.log('setBladeContentHeight: ' + that.bladeContentHeight);
447
+ }, 500);
448
+ });
441
449
  };
442
450
  return Blade;
443
451
  }(angularportalazure.UserControlBase));
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ardimedia/angular-portal-azure",
3
3
  "description": "Angular Portal Azure - GUI Framework.",
4
4
  "author": "Ardimedia Anstalt <info@ardimedia.com> (http://www.ardimedia.com)",
5
- "version": "0.2.124",
5
+ "version": "0.2.125",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {
@@ -20,6 +20,7 @@
20
20
  "@types/angular-translate": "^2.4.34",
21
21
  "@types/angulartics": "^1.3.0",
22
22
  "@types/ng-dialog": "^0.6.0",
23
+ "@types/node": "^6.0.52",
23
24
  "typescript": "^2.1.4"
24
25
  }
25
26
  }