@ardimedia/angular-portal-azure 0.2.123 → 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.
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,11 @@ 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
- bladeContentHeigth: number;
52
+ bladeContentHeight: number;
51
53
  path: string;
52
54
  private _path;
53
55
  title: string;
@@ -153,6 +155,7 @@ declare namespace angularportalazure {
153
155
  onCommandSwap(): void;
154
156
  /** Obsolete */
155
157
  bladeClose(): void;
158
+ private setBladeContentHeight();
156
159
  }
157
160
  }
158
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", {
@@ -433,6 +433,20 @@ var angularportalazure;
433
433
  Blade.prototype.bladeClose = function () {
434
434
  this.close();
435
435
  };
436
+ //#endregion
437
+ //#endregion
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
+ });
449
+ };
436
450
  return Blade;
437
451
  }(angularportalazure.UserControlBase));
438
452
  angularportalazure.Blade = Blade;
@@ -222,7 +222,7 @@
222
222
  </div>
223
223
  </div>
224
224
  </header>
225
- <div class="fxs-blade-content fxs-pannable" style="height:calc(100% - 175px);">
225
+ <div class="fxs-blade-content fxs-pannable" style="height:calc(100% - 125px);">
226
226
  <div class="fxs-blade-stacklayout fxs-stacklayout fxs-stacklayout-vertical" ng-style="$ctrl.vm.widthStackLayout">
227
227
  <div class="fxs-stacklayout-child">
228
228
  <div class="fxs-lens">
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.123",
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
  }