From 350f7ed118dac92be77efd028f593207794dc652 Mon Sep 17 00:00:00 2001 From: Guilherme Andrade Del Cantoni Date: Mon, 13 Mar 2017 11:50:27 -0300 Subject: [PATCH] Ajuste na barra de rolagem do editor de documentos --- sei/web/modulos/peticionamento/editor_peticionamento_processar.php | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/sei/web/modulos/peticionamento/editor_peticionamento_processar.php b/sei/web/modulos/peticionamento/editor_peticionamento_processar.php index 0bc4833..4163e79 100644 --- a/sei/web/modulos/peticionamento/editor_peticionamento_processar.php +++ b/sei/web/modulos/peticionamento/editor_peticionamento_processar.php @@ -189,19 +189,36 @@ ?> function inicializar(){ infraEfeitoTabelas(); + infraAdicionarEvento(window,'resize',redimensionar); + CKEDITOR.on('instanceReady', function( evt ) { redimensionar();}); } + + function redimensionar() { + setTimeout(function(){ + + var tamComandos=document.getElementById('divComandos').offsetHeight; + var divEd=document.getElementById('divEditores'); + if (tamComandos>divEd.offsetHeight) tamComandos-=divEd.offsetHeight; + var tamEditor=infraClientHeight()- tamComandos - 20; + divEd.style.height = (tamEditor>0?tamEditor:1) +'px'; + },0); + } + fecharJavaScript(); echo $retEditor->getStrInicializacao(); PaginaSEIExterna::getInstance()->fecharHead(); ?> - +
- - -
-
+
+ getNumTipoBrowser()==InfraPagina::$TIPO_BROWSER_IE7 ) echo '
'; + ?> + +
-
+ -- libgit2 0.21.2