mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 05:00:13 -05:00
Fix Webkit scrolls to top on paste bug.
This commit is contained in:
parent
99c26861c1
commit
1d83790a57
2 changed files with 3 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
@ -1244,8 +1244,8 @@
|
|||
endOffset = range.endOffset;
|
||||
|
||||
var pasteArea = createElement( 'DIV', {
|
||||
style: 'position: absolute; overflow: hidden;' +
|
||||
'top: -100px; left: -100px; width: 1px; height: 1px;'
|
||||
style: 'position: absolute; overflow: hidden; top:' +
|
||||
(body.scrollTop + 30) + 'px; left: 0; width: 1px; height: 1px;'
|
||||
});
|
||||
body.appendChild( pasteArea );
|
||||
range.selectNodeContents( pasteArea );
|
||||
|
|
Loading…
Reference in a new issue