There is a bug in SC 6.5 when creating a toolbar object with orientation: “vertical”. The toolbar will maintain its horizontal orientation unless vertical: true is specified. If this was fixed in 6.5.1 I apologize for this bug report, as I haven’t tested it yet.
Here is a test case:
isc.HLayout.create({
cols: ["*","*"],
width: "100%",
height: "100%",
members:[
// buttons will be placed horizontally
isc.Toolbar.create({
height: "200",
orientation: "vertical",
buttons: [
isc.Button.create({
title: "button1"
}),
isc.Button.create({
title: "button2"
}),
isc.Button.create({
title: "button3"
})
],
autoDraw: false
}),
// buttons will be placed vertically
isc.Toolbar.create({
vertical: true,
height: "200",
buttons: [
isc.Button.create({
title: "button1"
}),
isc.Button.create({
title: "button2"
}),
isc.Button.create({
title: "button3"
})
],
autoDraw: false
})
]
})
Here is the documentation for both of the toolbar properties:
http://www.smartclient.com/docs/6.5/a/b/c/go.html#attr..Layout.orientation
http://www.smartclient.com/docs/6.5/a/b/c/go.html#attr..Toolbar.vertical
I think that having them both there is confusing, if orientation is no longer to be used maybe it should be marked as deprecated.
Again, if this was fixed in 6.5.1 I apologize. Cheers!