Explorar o código

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

Piotrek Koszuliński %!s(int64=8) %!d(string=hai) anos
pai
achega
51d443b4bb
Modificáronse 1 ficheiros con 3 adicións e 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.