solve the great textfit mystery of 2022

master
ansuz 3 years ago
parent d344743308
commit 80cc9c7bba

@ -130,7 +130,9 @@ define([
// instance title // instance title
var instanceTitle = h('h1.cp-instance-title', Pages.Instance.name); var instanceTitle = h('h1.cp-instance-title', Pages.Instance.name);
// XXX DB: How does TextFit work?! // 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 // instance location
var locationBlock; var locationBlock;

Loading…
Cancel
Save