mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-04-20 21:34:53 +02:00
fix placeholder positioning
This commit is contained in:
parent
aec4d299ce
commit
2f22fb3366
@ -70,8 +70,8 @@ class Placeholder extends React.Component {
|
||||
const rect = nodeEl.getBoundingClientRect()
|
||||
el.style.pointerEvents = 'none'
|
||||
el.style.position = 'absolute'
|
||||
el.style.top = `${rect.top}px`
|
||||
el.style.left = `${rect.left}px`
|
||||
el.style.top = `${window.scrollY + rect.top}px`
|
||||
el.style.left = `${window.scrollX + rect.left}px`
|
||||
el.style.width = `${rect.width}px`
|
||||
el.style.height = `${rect.height}px`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user