Fix Frame border drawing

This commit is contained in:
Vladimir Markelov 2018-10-08 00:26:34 -07:00
parent 8c84a8b2ae
commit a83e4ab41b
4 changed files with 8 additions and 4 deletions

View File

@ -7,7 +7,7 @@ Command Line User Interface (Console UI inspired by TurboVision) with built-in t
## Current version
The current version is 0.9.0 RC3. Please see details in [changelog](./changelog).
The current version is 0.9.0 RC5. Please see details in [changelog](./changelog).
## Applications that uses the library
* Terminal FB2 reader(termfb2): https://github.com/VladimirMarkelov/termfb2

View File

@ -1 +1 @@
0.9.0-rc4
0.9.0-rc5

View File

@ -1,3 +1,6 @@
2018-10-08 - version 0.9.0 RC5
[*] Fix Frame border drawing
2018-09-30 - version 0.9.0 RC4
[+] New feature: borderless windows (thanks to Mark D Horn)
[+] ScrollTo API for scrollable frame

View File

@ -101,7 +101,6 @@ func (f *Frame) Draw() {
x, y, w, h := f.Clipper()
if f.scrollable {
_, fy := f.Pos()
_, fh := f.Size()
_, fpy := f.Paddings()
@ -146,7 +145,9 @@ func (f *Frame) Draw() {
SetTextColor(fg)
SetBackColor(bg)
DrawFrame(x, y, w, h, f.border)
fx, fy := f.Pos()
fw, fh := f.Size()
DrawFrame(fx, fy, fw, fh, f.border)
if f.title != "" {
str := f.title