mirror of
https://github.com/chjj/blessed.git
synced 2026-02-06 13:51:52 +00:00
fix labels for non-scrollable elements.
This commit is contained in:
parent
945e2a57fb
commit
963cfbb9f8
@ -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();
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user