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