Estoy disparando eventos en el cuadro del navegador, pero cada vez que navego por una URL, el nivel de zoom de mi navegador se restablece.
El nivel de zoom del navegador, como en Chrome, se controla con "{ctrl} + {rueda del mouse}" o "{Ctr}l + {+}"
¿Hay algún parámetro que pueda configurar para controlar esto o mantener la configuración anterior de los usuarios?
Llegar al 100% cada vez no es lo ideal.
También tengo el control total de la página web, pero no quiero hacer una solución CSS , tengo mis razones para usar el nivel de zoom del navegador. Tengo diferentes funciones de zoom que usan CSS.
Chromedriver y selenium es mi otra opción que estoy usando, pero chromedriver requiere ganchos externos de los que me gustaría deshacerme.
Sin embargo, no tiene este problema, la instancia del navegador conserva el nivel de zoom hasta que el usuario lo modifique.
Try(
wb << navigate (url);
,
Throw(
w = New Window( "JMP_Driver", wb = Web Browser Box());
w << Set window size (1200,1200);
//wb << set auto stretching (1,1);
//w << set auto stretching (1,1);
wb << navigate (url);
)
);
I find the Web Browser Box() super helpful! Edge (based on chromium) has such a better display engine than JMP, so for complicated forms and UI elements, implementing them in the web as a SPA is preferable. The hard part was to have JMP + SPA instance communicate reliably, but that was just tedious rather than difficult. I'm curious as to what you're wanting with your embedded web app -- if it's your own web-app, then maybe you can set it up to not do reloads, and then it'll keep it's zoom-level.