api browser scrollbar

This commit is contained in:
j 2011-01-26 17:57:51 +05:30
parent 358c1ecebb
commit d625114048

View file

@ -33,10 +33,28 @@ $(function() {
app.$ui.actionList = constructList(); app.$ui.actionList = constructList();
app.$ui.actionInfo = Ox.Container().css({padding: '8px'}).html('select action on the left.'); app.$ui.actionInfo = Ox.Container().css({padding: '8px'}).html('select action on the left.');
var $left = new Ox.SplitPanel({
elements: [
{
element: new Ox.Element().append(new Ox.Element().html('oxjs API').css({
'padding': '4px',
})).css({
'background-color': '#ddd',
'font-weight': 'bold',
}),
size: 24
},
{
element: app.$ui.actionList
}
],
orientation: 'vertical'
});
var $main = new Ox.SplitPanel({ var $main = new Ox.SplitPanel({
elements: [ elements: [
{ {
element: app.$ui.actionList, element: $left,
size: 160 size: 160
}, },
{ {
@ -80,6 +98,7 @@ function constructList() {
Ox.print("items", items); Ox.print("items", items);
callback(result); callback(result);
}, },
scrollbarVisible: true,
sort: [ sort: [
{ {
key: "name", key: "name",