0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-03 05:00:13 -05:00

take visual artifacts from pasting in IE and hide them in the deep, dark nethers of not-appearing-on-your-screen-anymore

This commit is contained in:
Thomas Feagin 2015-06-02 20:29:10 -07:00
parent 884f352846
commit ac19bfdd62
3 changed files with 4 additions and 4 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: 99999px; 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: 99999px; width: 1px; height: 1px;'
}); });
body.appendChild( pasteArea ); body.appendChild( pasteArea );
range.selectNodeContents( pasteArea ); range.selectNodeContents( pasteArea );