diff --git a/lib/widget.js b/lib/widget.js index d60b548..17fbf00 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -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;