[Users] Vertical alignement of objects in toolbar
Luís de Sousa
luis.a.de.sousa at gmail.com
Fri Jan 11 11:25:31 CET 2013
On 11 January 2013 07:34, Matt Priour wrote:
>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
Hi Matt, thank you for answering. I removed the extra square brackets
and the first split, please see the code below. The result is exactly
the same, apart from the absence of the first split.
Regards,
Luís
#######################################################
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'
}]
}]
}
More information about the Users
mailing list