Kaynağa Gözat

Changed fake selection's container left CSS property to -9999px.

Szymon Kupś 9 yıl önce
ebeveyn
işleme
2877f87ae1

+ 1 - 1
packages/ckeditor5-engine/src/view/renderer.js

@@ -466,7 +466,7 @@ export default class Renderer {
 			this._fakeSelectionContainer = domDocument.createElement( 'div' );
 			this._fakeSelectionContainer.style.position = 'fixed';
 			this._fakeSelectionContainer.style.top = 0;
-			this._fakeSelectionContainer.style.left = '-1000px';
+			this._fakeSelectionContainer.style.left = '-9999px';
 		}
 
 		// Add fake container if not already added.

+ 1 - 1
packages/ckeditor5-engine/tests/view/renderer.js

@@ -1103,7 +1103,7 @@ describe( 'Renderer', () => {
 
 				expect( container.style.position ).to.equal( 'fixed' );
 				expect( container.style.top ).to.equal( '0px' );
-				expect( container.style.left ).to.equal( '-1000px' );
+				expect( container.style.left ).to.equal( '-9999px' );
 			} );
 
 			it( 'should bind fake selection container to view selection', () => {