@kirbydesign/designsystem 5.0.21 → 5.0.22
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/bundles/kirbydesign-designsystem.umd.js +2 -10
- package/bundles/kirbydesign-designsystem.umd.js.map +1 -1
- package/bundles/kirbydesign-designsystem.umd.min.js +1 -1
- package/bundles/kirbydesign-designsystem.umd.min.js.map +1 -1
- package/esm2015/lib/directives/fit-heading/fit-heading.directive.js +3 -11
- package/fesm2015/kirbydesign-designsystem.js +2 -10
- package/fesm2015/kirbydesign-designsystem.js.map +1 -1
- package/package.json +1 -1
|
@@ -9033,16 +9033,8 @@
|
|
|
9033
9033
|
};
|
|
9034
9034
|
FitHeadingDirective.prototype.observeResize = function () {
|
|
9035
9035
|
var _this = this;
|
|
9036
|
-
this.resizeObserverService.observe(this.elementRef, function (
|
|
9037
|
-
|
|
9038
|
-
// - ResizeObserver loop limit exceeded
|
|
9039
|
-
// For more information @see(https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded)
|
|
9040
|
-
window.requestAnimationFrame(function () {
|
|
9041
|
-
if (!Array.isArray(entry) || !entry.length) {
|
|
9042
|
-
return;
|
|
9043
|
-
}
|
|
9044
|
-
_this.scaleHeader();
|
|
9045
|
-
});
|
|
9036
|
+
this.resizeObserverService.observe(this.elementRef, function () {
|
|
9037
|
+
_this.scaleHeader();
|
|
9046
9038
|
});
|
|
9047
9039
|
};
|
|
9048
9040
|
FitHeadingDirective.prototype.scaleHeader = function () {
|