@ardimedia/angular-portal-azure 0.2.124 → 0.2.126

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 +4 -1
  2. package/apn.js +19 -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,10 +45,12 @@ 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);
50
52
  bladeContentHeight: number;
53
+ bladeContentInnerHeight: number;
51
54
  path: string;
52
55
  private _path;
53
56
  title: string;
@@ -153,7 +156,7 @@ declare namespace angularportalazure {
153
156
  onCommandSwap(): void;
154
157
  /** Obsolete */
155
158
  bladeClose(): void;
156
- private getGridHeight(blade);
159
+ private setBladeHeights();
157
160
  }
158
161
  }
159
162
  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.setBladeHeights();
287
287
  return _this;
288
288
  }
289
289
  Object.defineProperty(Blade.prototype, "path", {
@@ -435,9 +435,19 @@ 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.setBladeHeights = function () {
439
+ var that = this;
440
+ that.bladeContentHeight = $('.fxs-blade-content').height();
441
+ that.bladeContentInnerHeight = $('.fxs-part-content').height() - 20;
442
+ // http://stackoverflow.com/questions/4298612/jquery-how-to-call-resize-event-only-once-its-finished-resizing
443
+ var id;
444
+ $(window).resize(function () {
445
+ clearTimeout(id);
446
+ id = setTimeout(function () {
447
+ that.bladeContentHeight = $('.fxs-blade-content').height();
448
+ that.bladeContentInnerHeight = $('.fxs-part-content').height() - 20;
449
+ }, 500);
450
+ });
441
451
  };
442
452
  return Blade;
443
453
  }(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.126",
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
  }