@skyux/core 5.2.1 → 5.2.2
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.
@@ -3192,6 +3192,21 @@
|
|
3192
3192
|
ensureStyleEl();
|
3193
3193
|
this.syncElPosition();
|
3194
3194
|
}
|
3195
|
+
Object.defineProperty(SkyViewkeeper.prototype, "viewportMarginTop", {
|
3196
|
+
get: function () {
|
3197
|
+
if (this.scrollableHost) {
|
3198
|
+
return 0;
|
3199
|
+
}
|
3200
|
+
else {
|
3201
|
+
return this._viewportMarginTop;
|
3202
|
+
}
|
3203
|
+
},
|
3204
|
+
set: function (margin) {
|
3205
|
+
this._viewportMarginTop = margin;
|
3206
|
+
},
|
3207
|
+
enumerable: false,
|
3208
|
+
configurable: true
|
3209
|
+
});
|
3195
3210
|
SkyViewkeeper.prototype.syncElPosition = function () {
|
3196
3211
|
var verticalOffset = this.calculateVerticalOffset();
|
3197
3212
|
// When the element isn't visible, its size can't be calculated, so don't attempt syncing position in this case.
|