fix labels for non-scrollable elements.

This commit is contained in:
Christopher Jeffrey 2015-04-25 19:12:47 -07:00
parent 945e2a57fb
commit 963cfbb9f8

View File

@ -2971,9 +2971,9 @@ Element.prototype.setLabel = function(options) {
var reposition = function() {
var visible = self.height - self.iheight;
self._label.rtop = self.childBase - (self.border ? 1 : 0);
self._label.rtop = (self.childBase || 0) - (self.border ? 1 : 0);
if (!self.screen.autoPadding) {
self._label.rtop = self.childBase;
self._label.rtop = (self.childBase || 0);
}
self.screen.render();
};