0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 15:23:29 -05:00

Position paste area further off screen to hide IE handlebars

Fixes #84.
This commit is contained in:
Neil Jenkins 2015-06-09 16:38:16 +07:00
parent 60169dce6b
commit ae7d93a8fe
3 changed files with 3 additions and 3 deletions

View file

@ -3105,7 +3105,7 @@ proto._onPaste = function ( event ) {
style: 'position: absolute; overflow: hidden; top:' + style: 'position: absolute; overflow: hidden; top:' +
( body.scrollTop + ( body.scrollTop +
( startBlock ? startBlock.getBoundingClientRect().top : 0 ) ) + ( startBlock ? startBlock.getBoundingClientRect().top : 0 ) ) +
'px; left: 0; width: 1px; height: 1px;' 'px; right: 150%; width: 1px; height: 1px;'
}); });
body.appendChild( pasteArea ); body.appendChild( pasteArea );
range.selectNodeContents( pasteArea ); range.selectNodeContents( pasteArea );

File diff suppressed because one or more lines are too long

View file

@ -1673,7 +1673,7 @@ proto._onPaste = function ( event ) {
style: 'position: absolute; overflow: hidden; top:' + style: 'position: absolute; overflow: hidden; top:' +
( body.scrollTop + ( body.scrollTop +
( startBlock ? startBlock.getBoundingClientRect().top : 0 ) ) + ( startBlock ? startBlock.getBoundingClientRect().top : 0 ) ) +
'px; left: 0; width: 1px; height: 1px;' 'px; right: 150%; width: 1px; height: 1px;'
}); });
body.appendChild( pasteArea ); body.appendChild( pasteArea );
range.selectNodeContents( pasteArea ); range.selectNodeContents( pasteArea );