From 347ecb7f28ff2006dc44b530e2e587aab6f0c1ce Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Tue, 30 Aug 2011 21:39:53 +0000 Subject: [PATCH] --- classesjs/atlas.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/classesjs/atlas.js b/classesjs/atlas.js index 86576c2..c0cf12e 100644 --- a/classesjs/atlas.js +++ b/classesjs/atlas.js @@ -51,9 +51,15 @@ Function: iniciaAtlas Inicializa o Atlas. Pega o título e monta as pranchas + +Parametros: + +combow {numerico} - largura do combo. Para escapar, utilize 0 */ -function iniciaAtlas() +function iniciaAtlas(combow) { + if(!combow) + {combow = 0;} document.body.style.width = "100%"; document.body.style.height = parseInt(document.body.style.height)+20; cpObjAtlas = new cpaint(); @@ -79,7 +85,10 @@ function iniciaAtlas() if (retorno.data.tipoguias == "combo") { pai.style.textAlign="left" - ins = "Escolha a prancha: 0) + {ins += "style=width:"+combow+"px ";} + ins += ">"; ins += "" } if (pai) -- libgit2 0.21.2