correct scope for fit-text selector
This commit is contained in:
		
							parent
							
								
									aa6677911c
								
							
						
					
					
						commit
						be460814ac
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		|  | @ -164,7 +164,7 @@ export default class SlideContent { | |||
| 		// Autosize text with the r-fit-text class based on the
 | ||||
| 		// size of its container. This needs to happen after the
 | ||||
| 		// 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 = ''; | ||||
| 			fitty( element, { | ||||
| 				minSize: 24, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue