@ardimedia/angular-portal-azure 0.2.158 → 0.2.160
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.js +11 -15
- package/package.json +1 -1
package/apn.js
CHANGED
|
@@ -105,9 +105,7 @@ var angularportalazure;
|
|
|
105
105
|
var id;
|
|
106
106
|
this.portalService.$window.addEventListener('resize', function () {
|
|
107
107
|
clearTimeout(id);
|
|
108
|
-
id = setTimeout(function () {
|
|
109
|
-
callback();
|
|
110
|
-
}, 50);
|
|
108
|
+
id = setTimeout(function () { callback(); }, 50);
|
|
111
109
|
});
|
|
112
110
|
};
|
|
113
111
|
return UserControlBase;
|
|
@@ -230,7 +228,7 @@ var angularportalazure;
|
|
|
230
228
|
throw new Error('[angularportalazure.Blade] constructor parameter \'width\' must be at least 50.');
|
|
231
229
|
}
|
|
232
230
|
// Set 'this.portalService.areaBlades.blades[index]' to 'this'
|
|
233
|
-
//
|
|
231
|
+
// 'this.portalService.areaBlades.blades[index]' was generated during AddBlade
|
|
234
232
|
_this.portalService.areaBlades.blades.forEach(function (blade, index) {
|
|
235
233
|
if (blade.path === _this.path) {
|
|
236
234
|
_this.portalService.areaBlades.blades[index] = _this;
|
|
@@ -389,11 +387,10 @@ var angularportalazure;
|
|
|
389
387
|
}
|
|
390
388
|
};
|
|
391
389
|
Blade.prototype.setBladeHeights = function () {
|
|
392
|
-
|
|
393
|
-
this.
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}, 50);
|
|
390
|
+
this.bladeContentHeight = this.portalService.$window.innerHeight - 125; // 125 = header
|
|
391
|
+
this.bladeContentHeightInner = this.bladeContentHeight - 50 - 3; // 50 = padding (top and bottom), somehow we miss 3px
|
|
392
|
+
//this.portalService.$timeout(() => {
|
|
393
|
+
//}, 50);
|
|
397
394
|
};
|
|
398
395
|
return Blade;
|
|
399
396
|
}(angularportalazure.UserControlBase));
|
|
@@ -1132,19 +1129,18 @@ var angularportalazure;
|
|
|
1132
1129
|
//#endregion
|
|
1133
1130
|
//#region Properties
|
|
1134
1131
|
_this.items = [];
|
|
1135
|
-
_this.commandNewText = 'neu';
|
|
1136
1132
|
return _this;
|
|
1137
1133
|
}
|
|
1138
1134
|
//#endregion
|
|
1139
1135
|
//#region Methods
|
|
1140
1136
|
BladeGrid.prototype.loadItems = function (func) {
|
|
1141
|
-
var
|
|
1142
|
-
|
|
1137
|
+
var _this = this;
|
|
1138
|
+
this.onLoadItems();
|
|
1143
1139
|
func().then(function (data) {
|
|
1144
|
-
|
|
1145
|
-
|
|
1140
|
+
_this.items = data;
|
|
1141
|
+
_this.onLoadedItems();
|
|
1146
1142
|
}).catch(function (exception) {
|
|
1147
|
-
|
|
1143
|
+
_this.setStatusBarException(exception);
|
|
1148
1144
|
});
|
|
1149
1145
|
};
|
|
1150
1146
|
BladeGrid.prototype.onLoadItems = function () {
|
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.
|
|
5
|
+
"version": "0.2.160",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|