From d625114048bbcbdfb6cfd7c2c392e907103a8132 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 26 Jan 2011 17:57:51 +0530 Subject: [PATCH] api browser scrollbar --- docs/api.js | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/api.js b/docs/api.js index 127acdc5..82283587 100644 --- a/docs/api.js +++ b/docs/api.js @@ -33,10 +33,28 @@ $(function() { app.$ui.actionList = constructList(); 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({ elements: [ { - element: app.$ui.actionList, + element: $left, size: 160 }, { @@ -80,6 +98,7 @@ function constructList() { Ox.print("items", items); callback(result); }, + scrollbarVisible: true, sort: [ { key: "name",