mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-13 12:35:05 +00:00
fix style.border values. fixes #105.
This commit is contained in:
parent
982e075a90
commit
29a78697bb
@ -1832,12 +1832,13 @@ function Element(options) {
|
||||
this.border.type = this.border.type || 'bg';
|
||||
if (this.border.type === 'ascii') this.border.type = 'line';
|
||||
this.border.ch = this.border.ch || ' ';
|
||||
if (!this.border.style) {
|
||||
this.border.style = this.style.border || {};
|
||||
this.border.style.fg = this.border.fg;
|
||||
this.border.style.bg = this.border.bg;
|
||||
this.style.border = this.style.border || this.border.style;
|
||||
if (!this.style.border) {
|
||||
this.style.border = {};
|
||||
this.style.border.fg = this.border.fg;
|
||||
this.style.border.bg = this.border.bg;
|
||||
}
|
||||
this.style.border = this.border.style;
|
||||
//this.border.style = this.style.border;
|
||||
}
|
||||
|
||||
if (options.clickable) {
|
||||
@ -3866,7 +3867,7 @@ function ScrollableBox(options) {
|
||||
this.style.scrollbar.inverse = this.scrollbar.inverse;
|
||||
this.style.scrollbar.invisible = this.scrollbar.invisible;
|
||||
}
|
||||
this.scrollbar.style = this.style.scrollbar;
|
||||
//this.scrollbar.style = this.style.scrollbar;
|
||||
if (this.track || this.scrollbar.track) {
|
||||
this.track = this.scrollbar.track || this.track;
|
||||
this.style.track = this.style.scrollbar.track || this.style.track;
|
||||
|
Loading…
x
Reference in New Issue
Block a user