minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2015-06-21 18:46:46 +03:00
parent 82ae24741e
commit cca24fad85

View File

@ -44,8 +44,6 @@
/* make the container expand only to a certain size, then scroll */ /* make the container expand only to a certain size, then scroll */
/* XXX need to: /* XXX need to:
- auto-scroll vertically
- use custom scroll bars
- shorten path to fit width - shorten path to fit width
i.e. manage width manually when at max-width... i.e. manage width manually when at max-width...
*/ */
@ -151,8 +149,10 @@ requirejs(['../lib/keyboard', '../object', './browse-dialog'], function(k, o, br
keyboard = k keyboard = k
object = o object = o
// Tree demo...
b = browser.Browser($('.container.tree'), { b = browser.Browser($('.container.tree'), {
path: '/dir_a/tree/dir_c', path: '/dir_a/tree/dir_c',
list: function(path, make){ list: function(path, make){
var cur = TREE var cur = TREE
path.forEach(function(p){ path.forEach(function(p){
@ -182,9 +182,9 @@ requirejs(['../lib/keyboard', '../object', './browse-dialog'], function(k, o, br
}, },
}) })
.focus() .focus()
//b.path = '/dir_a/tree/dir_c'
// Flat list demo...
f = browser.Browser($('.container.flat'), { f = browser.Browser($('.container.flat'), {
data: [ data: [
'option 1', 'option 1',