correct scope for fit-text selector
This commit is contained in:
parent
aa6677911c
commit
be460814ac
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -164,7 +164,7 @@ export default class SlideContent {
|
||||||
// Autosize text with the r-fit-text class based on the
|
// Autosize text with the r-fit-text class based on the
|
||||||
// size of its container. This needs to happen after the
|
// size of its container. This needs to happen after the
|
||||||
// slide is visible in order to measure the text.
|
// slide is visible in order to measure the text.
|
||||||
Array.from( document.querySelectorAll( '.r-fit-text:not([data-fitted])' ) ).forEach( element => {
|
Array.from( slide.querySelectorAll( '.r-fit-text:not([data-fitted])' ) ).forEach( element => {
|
||||||
element.dataset.fitted = '';
|
element.dataset.fitted = '';
|
||||||
fitty( element, {
|
fitty( element, {
|
||||||
minSize: 24,
|
minSize: 24,
|
||||||
|
|
Loading…
Reference in New Issue