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);
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;

View File

@ -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'
},