Fix statusDiv position
This position needs to be tested on high resolution displays (4K, etc.)
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
				
			|||||||
// TODO: Test with contenteditable="plaintext-only"
 | 
					// TODO: Test with contenteditable="plaintext-only"
 | 
				
			||||||
// TODO: Implement <textarea> class
 | 
					// TODO: Implement <textarea> class
 | 
				
			||||||
 | 
					// TODO: Find a way to disable languageTool extension
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Collection of all grammar checking services in the document
 | 
					 * Collection of all grammar checking services in the document
 | 
				
			||||||
@@ -888,11 +889,11 @@ class BesCKService extends BesTreeService {
 | 
				
			|||||||
   * Repositions status DIV element.
 | 
					   * Repositions status DIV element.
 | 
				
			||||||
   */
 | 
					   */
 | 
				
			||||||
  setStatusDivPosition() {
 | 
					  setStatusDivPosition() {
 | 
				
			||||||
    // TODO: Position is not correct (SR6, Edge).
 | 
					    // TODO: New position needs to be tested on better displays (4K, etc.)
 | 
				
			||||||
    const rect = this.hostElement.getBoundingClientRect()
 | 
					    const rect = this.hostElement.getBoundingClientRect()
 | 
				
			||||||
    const scrollTop = window.scrollY || document.documentElement.scrollTop
 | 
					    const scrollTop = window.scrollY || document.documentElement.scrollTop
 | 
				
			||||||
    this.statusDiv.style.left = `${rect.right - 50}px`
 | 
					    this.statusDiv.style.left = `${rect.right - 50}px`
 | 
				
			||||||
    this.statusDiv.style.top = `${rect.top + rect.height - 100 + scrollTop}px`
 | 
					    this.statusDiv.style.top = `${rect.top + rect.height - 120 + scrollTop}px`
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user