[Users] Vertical alignement of objects in toolbar

Matt Priour mpriour at kestrelcomputer.com
Fri Jan 11 07:34:52 CET 2013


Get rid of the second set of square brackets. Used naked by it self like 
that is guaranteed to get you odd results. Also the initial split 
separator is not needed.
Matt Priour
On 1/8/2013 8:44 AM, Luís de Sousa wrote:
> Dear all,
>
> I have a toolbar with a few buttons, separators and a split button.
> The code that creates this toolbar can be found below, and in
> attachment is a small picture with the result. As you can see, each
> item is assortedly align in the vertical. My question would be how to
> align all these items together, in line with the split button.
>
> Thank you and regards,
>
> Luís
>
> ###########################################33
>
> tbar: {
>          height: 100,
>          items:[
>              '-',
>              [{
> 			    iconCls: "pan",
> 			    map: WebGIS.map,
> 			    pressed: true,
> 			    toggleGroup: "tools",
> 			    allowDepress: false,
> 			    tooltip: "Navigate",
> 			    control: new OpenLayers.Control.Navigation()
> 	    },{
> 			    iconCls: "print",
> 			    map: WebGIS.map,
> 			    toggleGroup: "tools",
> 			    allowDepress: false,
> 			    tooltip: "Print - still in development",
> 			    disabled: true
> 	    }],
>              '-',
>              '->',
>              '-',
>             {
>                 xtype:'splitbutton',
>                 text: 'Open Street Map',
>                 menu: [{
>              	   text: 'Open Street Map',
>              	   checked: true,
>              	   handler  : WebGIS.baseOSM,
>              	   group: 'baseLayer'
>                 },{
>              	   text: 'Google Satellite',
>              	   checked: false,
>              	   handler  : WebGIS.baseGoogleSat,
>              	   group: 'baseLayer'
>                 }]
>         	}]
>      }
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20130111/cc555ddb/attachment.htm 


More information about the Users mailing list