forked from CIT/Vmeda.Online
		
	MOBILE-3320 format-text: Temporary fix to improve height calculation
This commit is contained in:
		
							parent
							
								
									450a392b42
								
							
						
					
					
						commit
						a57297b09a
					
				@ -377,6 +377,7 @@ export class CoreFormatTextDirective implements OnChanges {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            // Calculate the height now.
 | 
					            // Calculate the height now.
 | 
				
			||||||
            this.calculateHeight();
 | 
					            this.calculateHeight();
 | 
				
			||||||
 | 
					            setTimeout(() => this.calculateHeight(), 200); // Try again, sometimes the first calculation is wrong.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // Add magnifying glasses to images.
 | 
					            // Add magnifying glasses to images.
 | 
				
			||||||
            this.addMagnifyingGlasses();
 | 
					            this.addMagnifyingGlasses();
 | 
				
			||||||
@ -388,6 +389,7 @@ export class CoreFormatTextDirective implements OnChanges {
 | 
				
			|||||||
                        if (data.loaded && CoreDomUtils.closest(this.element.parentElement, '#' + data.uniqueId)) {
 | 
					                        if (data.loaded && CoreDomUtils.closest(this.element.parentElement, '#' + data.uniqueId)) {
 | 
				
			||||||
                            // The format-text is inside the loading, re-calculate the height.
 | 
					                            // The format-text is inside the loading, re-calculate the height.
 | 
				
			||||||
                            this.calculateHeight();
 | 
					                            this.calculateHeight();
 | 
				
			||||||
 | 
					                            setTimeout(() => this.calculateHeight(), 200);
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                    });
 | 
					                    });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user