mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 08:52:56 +00:00 
			
		
		
		
	Fix bug where layout changes wouldn't scroll messages to bottom
This commit is contained in:
		@@ -55,7 +55,10 @@ export class DashboardComponent implements OnInit, OnDestroy {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  subscribeResizeOnLayoutChange() {
 | 
			
		||||
    this.configService.layout.subscribe(() => this.emitResizeEvent());
 | 
			
		||||
    this.configService.layout.subscribe(() => {
 | 
			
		||||
      this.emitResizeEvent();
 | 
			
		||||
      setTimeout(() => this.scrollMessagesToBottom(), 0);
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  initCommandHandling() {
 | 
			
		||||
@@ -89,7 +92,6 @@ export class DashboardComponent implements OnInit, OnDestroy {
 | 
			
		||||
 | 
			
		||||
  setLayout(layout: string) {
 | 
			
		||||
    this.layout.next(layout);
 | 
			
		||||
    this.emitResizeEvent();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  emitResizeEvent() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user