minor fixes.

This commit is contained in:
Christopher Jeffrey 2013-07-31 19:21:10 -05:00
parent f3df07a237
commit 0e047b8e51
2 changed files with 3 additions and 2 deletions

View File

@ -156,7 +156,6 @@ Node.prototype.forAncestors = function(iter, s) {
if (s) iter(this); if (s) iter(this);
while (el = el.parent) { while (el = el.parent) {
iter(el); 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 // Need to use _getCoords() over lpos for when the
// element is obfuscated by a scrollable parent. // element is obfuscated by a scrollable parent.
ret = el._getCoords(); ret = el._getCoords();
//ret = el.lpos;
if (!ret) continue; if (!ret) continue;
left = ret.xi; left = ret.xi;
top = ret.yi; top = ret.yi;

View File

@ -233,10 +233,11 @@ input.on('submit', function(value) {
screen.append(input); screen.append(input);
var button = blessed.Button({ var button = blessed.button({
//content: 'Click me!', //content: 'Click me!',
content: 'Click\nme!', content: 'Click\nme!',
shrink: true, shrink: true,
mouse: true,
border: { border: {
type: 'ascii' type: 'ascii'
}, },