mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-10 19:16:20 +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…
x
Reference in New Issue
Block a user