@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/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# 4.9.1 (2021-12-06)
|
2
|
+
|
3
|
+
- Fixed the viewkeeper directive to ignore the viewport margin when attaching to a scrollable host. [#279](https://github.com/blackbaud/skyux-core/pull/279)
|
4
|
+
|
1
5
|
# 4.9.0 (2021-11-02)
|
2
6
|
|
3
7
|
- Added the `SkyScrollableHostService` to be able to get and watch for an element's scrollable host. [#269](https://github.com/blackbaud/skyux-core/pull/269)
|
@@ -2947,6 +2947,21 @@
|
|
2947
2947
|
ensureStyleEl();
|
2948
2948
|
this.syncElPosition();
|
2949
2949
|
}
|
2950
|
+
Object.defineProperty(SkyViewkeeper.prototype, "viewportMarginTop", {
|
2951
|
+
get: function () {
|
2952
|
+
if (this.scrollableHost) {
|
2953
|
+
return 0;
|
2954
|
+
}
|
2955
|
+
else {
|
2956
|
+
return this._viewportMarginTop;
|
2957
|
+
}
|
2958
|
+
},
|
2959
|
+
set: function (margin) {
|
2960
|
+
this._viewportMarginTop = margin;
|
2961
|
+
},
|
2962
|
+
enumerable: true,
|
2963
|
+
configurable: true
|
2964
|
+
});
|
2950
2965
|
SkyViewkeeper.prototype.syncElPosition = function () {
|
2951
2966
|
var verticalOffset = this.calculateVerticalOffset();
|
2952
2967
|
// When the element isn't visible, its size can't be calculated, so don't attempt syncing position in this case.
|