Explorar el Código

Fix: The fake selection container should not leak into the viewport. Closes ckeditor/ckeditor5#752.

Piotrek Koszuliński hace 8 años
padre
commit
51d443b4bb
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      packages/ckeditor5-engine/src/view/renderer.js

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

@@ -576,7 +576,9 @@ export default class Renderer {
 			Object.assign( container.style, {
 				position: 'fixed',
 				top: 0,
-				left: '-9999px'
+				left: '-9999px',
+				// See https://github.com/ckeditor/ckeditor5/issues/752.
+				width: '42px'
 			} );
 
 			// Fill it with a text node so we can update it later.