Fix statusDiv position
This position needs to be tested on high resolution displays (4K, etc.)
This commit is contained in:
parent
f3ee5d1d37
commit
afd9709ef5
@ -1,5 +1,6 @@
|
||||
// TODO: Test with contenteditable="plaintext-only"
|
||||
// TODO: Implement <textarea> class
|
||||
// TODO: Find a way to disable languageTool extension
|
||||
|
||||
/**
|
||||
* Collection of all grammar checking services in the document
|
||||
@ -888,11 +889,11 @@ class BesCKService extends BesTreeService {
|
||||
* Repositions status DIV element.
|
||||
*/
|
||||
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 scrollTop = window.scrollY || document.documentElement.scrollTop
|
||||
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`
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user