From 80cc9c7bbacbf2c9cd58441ac4c9675a5356bb54 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 6 May 2022 16:32:36 +0530 Subject: [PATCH] solve the great textfit mystery of 2022 --- customize.dist/pages/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/customize.dist/pages/index.js b/customize.dist/pages/index.js index b917d66ec..09c5dd23d 100644 --- a/customize.dist/pages/index.js +++ b/customize.dist/pages/index.js @@ -130,7 +130,9 @@ define([ // instance title var instanceTitle = h('h1.cp-instance-title', Pages.Instance.name); // XXX DB: How does TextFit work?! - // TextFit($(h1).find('.cp-instance-title')[0], {minFontSize: 13, maxFontSize: 18}); + setTimeout(function () { + TextFit(instanceTitle, {minFontSize: 13, maxFontSize: 48}); + }); // instance location var locationBlock;