-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Why this sentence
`<combobox width="100px"/>`
doesn't produce a combo box 100 pixels long? The whole box doesn't measure 100 pixels, but 118 pix. That happens the same to the
<separator>
objects. This sentence
<separator width="3px"/>
produces one of 4 pix. The sentence
<textbox width=100px/>
produces one of 108 pix. It makes me difficult to do layout
Please have a look:
http://84.121.1.36:8080/demoRCM/formularioIndividuos.zul
The source code of this page is:
<zk> <separator/> <hbox> <separator width="2px" orient="vertical"/> <toolbar width="570px"> <toolbarbutton label="Prim"/> <toolbarbutton label="Ante"/> <toolbarbutton label="Sigu"/> <toolbarbutton label="Ulti"/> <toolbarbutton label="Nuev"/> <toolbarbutton label="Elim"/> <toolbarbutton label="Guar"/> <toolbarbutton label="Desc"/> </toolbar> </hbox> <separator/> <hbox spacing="3"> <vbox><separator width="2px" orient="horizontal"/></vbox> <vbox>Numero<textbox width="97px"/></vbox> <vbox>Apellido 1<textbox width="166px"/></vbox> <vbox>Apellido2<textbox width="166px"/></vbox> <vbox>Nombre <textbox width="117px"/></vbox> </hbox> <hbox spacing="3"> <vbox><separator width="2px" orient="horizontal"/> </vbox> <vbox>DNI<textbox width="97px"/> </vbox> <vbox>NSS<textbox width="97px"/> </vbox> <vbox>CIP<textbox width="97px"/> </vbox> <vbox> <vbox>Fecha Nacmnto. <hbox> <textbox width="29px"/> <textbox width="29px"/> <textbox width="50px"/> </hbox> </vbox> </vbox> <vbox> Estado<combobox width="106px"/> </vbox> </hbox> <hbox spacing="3"> <vbox><separator width="2px" orient="horizontal"/> </vbox> <vbox>Numero Registro<textbox width="120px"/> </vbox> <vbox>Causa Otros<combobox width="120px"/> </vbox> </hbox> <separator/> <tabbox width="600px"> <tabs> <tab label="Datos"/> <tab label="Tumores"/> <tab label="Muerte"/> <tab label="Observaciones"/> </tabs> <tabpanels> <tabpanel> <hbox spacing="3"> <vbox>Sexo<combobox width="22px"/></vbox> <vbox>E.C.<combobox width="22px"/></vbox> <vbox>Edad<textbox width="36px"/></vbox> <vbox>Nombre Completo<textbox width="432px"/></vbox> </hbox> <hbox> <vbox>Comunidad<combobox width="180px"/></vbox> <vbox>Provincia<combobox width="177px"/></vbox> <vbox>Municipio<combobox width="146px"/></vbox> </hbox> <hbox> <vbox>Telefono<combobox width="144px"/></vbox> <vbox>ProvinciaNacimiento<combobox width="177px"/></vbox> <vbox>Municipio Nacimiento<textbox width="199px"/></vbox> </hbox> <hbox> <vbox>Domicilio<combobox width="222px"/></vbox> <vbox>Entidad Colectiva<combobox width="306px"/></vbox> </hbox> <hbox> <vbox>Ocupacion1<combobox width="553px"/></vbox> </hbox> <hbox> <vbox>Ocupacion2<combobox width="553px"/></vbox> </hbox> <hbox> <vbox>Ocupacion3<combobox width="553px"/></vbox> </hbox> </tabpanel> <tabpanel> <listbox> <listhead sizable="false"> <listheader label="Tumor" sort="auto"/> <listheader label="Base Diag." sort="auto"/> <listheader label="Localizacion" sort="auto"/> <listheader label="Fecha Incid" sort="auto"/> </listhead> <listitem> <listcell> <combobox width="205px" value="Tumor001"/> </listcell> <listcell label="Bases001"/> <listcell label="Local001"/> <listcell label="Fecha001"/> </listitem> <listitem> <listcell> <combobox width="205px" value="Tumor002"/> </listcell> <listcell label="Bases002"/> <listcell label="Local002"/> <listcell label="Fecha002"/> </listitem> <listitem> <listcell> <combobox width="205px" value="Tumor003"/> </listcell> <listcell label="Bases003"/> <listcell label="Local003"/> <listcell label="Fecha003"/> </listitem> <listitem> <listcell> <combobox width="205px" value="Tumor004"/> </listcell> <listcell label="Bases004"/> <listcell label="Local004"/> <listcell label="Fecha004"/> </listitem> <listitem> <listcell> <combobox width="205px" value="Tumor005"/> </listcell> <listcell label="Bases005"/> <listcell label="Local005"/> <listcell label="Fecha005"/> </listitem> </listbox> </tabpanel> <tabpanel> <hbox> <vbox>Fecha<textbox width="156px"/></vbox> <vbox>Numero Colegiado<textbox width="178px"/></vbox> <vbox>Lugar Muerte<combobox width="203px"/></vbox> </hbox> <hbox> <vbox>Autopsia<combobox width="175px"/></vbox> <vbox>Causa B. Muerte<combobox width="105px"/></vbox> <vbox>Causa Muerte<combobox width="105px"/></vbox> <vbox>Causa Muerte<combobox width="93px"/></vbox> </hbox> <hbox> <vbox>CIE 9<textbox width="156px"/></vbox> <vbox>CIE 9<textbox width="178px"/></vbox> <vbox>CIE9<combobox width="203px"/></vbox> </hbox> <hbox> <vbox>CIE 10<textbox width="156px"/></vbox> <vbox>CIE 10<textbox width="178px"/></vbox> <vbox>CIE 10<combobox width="203px"/></vbox> </hbox> <hbox> <vbox>Observaciones<textbox width="570px" rows="6"/></vbox> </hbox> </tabpanel> <tabpanel> <hbox> <vbox>Observacion Individuo (este pasa a registro)<textbox width="570px" rows="6"/></vbox> </hbox> <hbox> <vbox>Observacion<textbox width="570px" rows="3"/></vbox> </hbox> <hbox> <vbox>Fech. Ult. Cont.<textbox width="156px"/></vbox> <vbox>Usuario Portatil<textbox width="178px"/></vbox> <vbox>Fecha Portatil<combobox width="203px"/></vbox> </hbox> </tabpanel> </tabpanels> </tabbox> </zk>
Asked: 2008-09-11 23:24:30 +0800
Seen: 318 times
Last updated: Jan 22 '13