Ver código fonte

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

Piotrek Koszuliński 8 anos atrás
pai
commit
51d443b4bb
1 arquivos alterados com 3 adições e 1 exclusões
  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.