Explorar el Código

fixed note anchoring issue

Gildas hace 5 años
padre
commit
49a2d29d8f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      extension/ui/content/content-ui-editor-web.js

+ 1 - 1
extension/ui/content/content-ui-editor-web.js

@@ -1426,7 +1426,7 @@ table {
 		const containerElement = noteElement.getRootNode().host;
 		if (positionedElement == document.documentElement) {
 			const firstMaskElement = document.querySelector("." + MASK_CLASS);
-			document.documentElement.insertBefore(containerElement, firstMaskElement);
+			firstMaskElement.parentElement.insertBefore(containerElement, firstMaskElement);
 		} else {
 			positionedElement.appendChild(containerElement);
 		}