Problem with select field in inframe detail form

The select and select2 type fields are behind the detail form inframe. They are already in version 9.12.023. I currently have 9.13.001 and the problem persists.

Captura de pantalla 2025-10-22 205935

The detail form is inside an <iframe>, and there is no way for a <select> element within the iframe to appear above the content of its parent container.

The following code adjusts the size of the detail <iframe> elements to fit their content. Unfortunately, resizing a <select> inside the iframe does not trigger any DOM resize event.

However, you can add some extra pixel margin — in this case, it’s set to 30, but you can increase it if needed.

OnLoad Event

?>
<script>
    function adjustIframeHeight(iframe) {
        try {
			var tamano = iframe.contentWindow.document.body.scrollHeight + 30; // 30 altura de margen
            iframe.style.height = tamano + 'px';
        } catch (error) {
            console.warn('No se pudo ajustar la altura del iframe:', error);
        }
    }

    function observeIframeContent(iframe) {
        try {
            const observerX = new MutationObserver(() => {
                adjustIframeHeight(iframe);
            });

            const targetNode = iframe.contentWindow.document.body;

            // Configurar el observador para monitorear cambios en el contenido
            observerX.observe(targetNode, {
                childList: true,
                subtree: true,
                attributes: true
            });
        } catch (error) {
            console.warn('No se pudo observar el contenido del iframe:', error);
        }
    }

    window.addEventListener('DOMContentLoaded', () => { //DOMContentLoaded
        const iframes = document.querySelectorAll('iframe');

        iframes.forEach(iframe => {
            // Ajustar la altura cuando el iframe se carga
            iframe.addEventListener('load', () => {                    
                observeIframeContent(iframe); // Iniciar observación del contenido
				//adjustIframeHeight(iframe);
            });
        });
    });
	
</script><?php

Te pego una imagen del cosigo, por que a veces cuando copio y pego en este foro cambia algo del codigo.

The bug was reported to support, with the following response: "I apologize for the situation. I’ve retested this version 9.13.001, and this behavior persists. For this reason, I’ll run a few more tests and report this to our development team as a potential bug so they can verify it.

If you’d like, I’ll personally notify you via this ticket of any responses I receive regarding this issue.

Best regards,
"

Thanks mate, I’ll test it.

cool will test them too