minor fixes.
This commit is contained in:
parent
f3df07a237
commit
0e047b8e51
|
@ -156,7 +156,6 @@ Node.prototype.forAncestors = function(iter, s) {
|
|||
if (s) iter(this);
|
||||
while (el = el.parent) {
|
||||
iter(el);
|
||||
el.emit.apply(el, args);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -463,6 +462,7 @@ Screen.prototype._listenMouse = function(el) {
|
|||
// Need to use _getCoords() over lpos for when the
|
||||
// element is obfuscated by a scrollable parent.
|
||||
ret = el._getCoords();
|
||||
//ret = el.lpos;
|
||||
if (!ret) continue;
|
||||
left = ret.xi;
|
||||
top = ret.yi;
|
||||
|
|
|
@ -233,10 +233,11 @@ input.on('submit', function(value) {
|
|||
|
||||
screen.append(input);
|
||||
|
||||
var button = blessed.Button({
|
||||
var button = blessed.button({
|
||||
//content: 'Click me!',
|
||||
content: 'Click\nme!',
|
||||
shrink: true,
|
||||
mouse: true,
|
||||
border: {
|
||||
type: 'ascii'
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue