@skyux/core 4.9.0 → 4.9.1
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/CHANGELOG.md +4 -0
- package/bundles/skyux-core.umd.js +15 -0
- package/bundles/skyux-core.umd.js.map +1 -1
- package/bundles/skyux-core.umd.min.js +1 -1
- package/bundles/skyux-core.umd.min.js.map +1 -1
- package/esm2015/modules/viewkeeper/viewkeeper.js +12 -1
- package/esm5/modules/viewkeeper/viewkeeper.js +16 -1
- package/fesm2015/skyux-core.js +11 -0
- package/fesm2015/skyux-core.js.map +1 -1
- package/fesm5/skyux-core.js +15 -0
- package/fesm5/skyux-core.js.map +1 -1
- package/modules/viewkeeper/viewkeeper.d.ts +3 -1
- package/package.json +1 -1
package/fesm5/skyux-core.js
CHANGED
@@ -2732,6 +2732,21 @@ var SkyViewkeeper = /** @class */ (function () {
|
|
2732
2732
|
ensureStyleEl();
|
2733
2733
|
this.syncElPosition();
|
2734
2734
|
}
|
2735
|
+
Object.defineProperty(SkyViewkeeper.prototype, "viewportMarginTop", {
|
2736
|
+
get: function () {
|
2737
|
+
if (this.scrollableHost) {
|
2738
|
+
return 0;
|
2739
|
+
}
|
2740
|
+
else {
|
2741
|
+
return this._viewportMarginTop;
|
2742
|
+
}
|
2743
|
+
},
|
2744
|
+
set: function (margin) {
|
2745
|
+
this._viewportMarginTop = margin;
|
2746
|
+
},
|
2747
|
+
enumerable: true,
|
2748
|
+
configurable: true
|
2749
|
+
});
|
2735
2750
|
SkyViewkeeper.prototype.syncElPosition = function () {
|
2736
2751
|
var verticalOffset = this.calculateVerticalOffset();
|
2737
2752
|
// When the element isn't visible, its size can't be calculated, so don't attempt syncing position in this case.
|