jaar23 / tui_widget

terminal ui widget based on illwill
14 stars 1 forks source link

Label has an extra row of bgColor-ing #6

Open sgmihai opened 2 weeks ago

sgmihai commented 2 weeks ago
import tui_widget

var twHeader = newLabel(px = 1, py = 0, w = 10, h = 1, id = "header",
                        bgColor = bgBlue, fgColor = fgYellow, text = "whatever")
var tuiapp = newTerminalApp(border=false, rpms=20)
tuiapp.addWidget(twHeader)
tuiapp.run(nonBlocking=false)

Results in the bgcolor blue being applied to the next row after label, even though h = 1. If I put h = 2, I get 3 rows of background color, and so on.

jaar23 commented 2 weeks ago

Yes, this is a bug. Planned to fix in the next release.