@kirbydesign/designsystem 5.0.20 → 5.0.21
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 +10 -2
- 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 +11 -3
- package/fesm2015/kirbydesign-designsystem.js +10 -2
- package/fesm2015/kirbydesign-designsystem.js.map +1 -1
- package/package.json +1 -1
|
@@ -9033,8 +9033,16 @@
|
|
|
9033
9033
|
};
|
|
9034
9034
|
FitHeadingDirective.prototype.observeResize = function () {
|
|
9035
9035
|
var _this = this;
|
|
9036
|
-
this.resizeObserverService.observe(this.elementRef, function () {
|
|
9037
|
-
|
|
9036
|
+
this.resizeObserverService.observe(this.elementRef, function (entry) {
|
|
9037
|
+
// We wrap it in requestAnimationFrame to avoid this error
|
|
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
|
+
});
|
|
9038
9046
|
});
|
|
9039
9047
|
};
|
|
9040
9048
|
FitHeadingDirective.prototype.scaleHeader = function () {
|