minor listbar work.
This commit is contained in:
parent
401b1a61cd
commit
2c337bb572
|
@ -5961,7 +5961,7 @@ Listbar.prototype.render = function() {
|
|||
redo = true;
|
||||
return;
|
||||
}
|
||||
el.width -= ((drawn + el.width)
|
||||
el.width -= ((drawn + el.width + 0) // could be 2 without the autopadding check
|
||||
- (lpos.xl - lpos.xi - self.iwidth)
|
||||
// XXX WHY? This seems backwards:
|
||||
+ (self.screen.autoPadding ? 1 : 0));
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
var blessed = require('../')
|
||||
, screen;
|
||||
|
||||
var auto = true;
|
||||
|
||||
screen = blessed.screen({
|
||||
dump: __dirname + '/logs/listbar.log',
|
||||
autoPadding: true
|
||||
autoPadding: auto
|
||||
});
|
||||
|
||||
var box = blessed.box({
|
||||
|
@ -20,7 +22,7 @@ var bar = blessed.listbar({
|
|||
bottom: 0,
|
||||
left: 3,
|
||||
right: 3,
|
||||
height: 3,
|
||||
height: auto ? 'shrink' : 3,
|
||||
mouse: true,
|
||||
keys: true,
|
||||
autoCommandKeys: true,
|
||||
|
|
Loading…
Reference in New Issue