mirror of
https://github.com/VladimirMarkelov/clui.git
synced 2025-04-26 13:49:01 +08:00
Fix Frame border drawing
This commit is contained in:
parent
8c84a8b2ae
commit
a83e4ab41b
@ -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
|
||||
|
@ -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
|
||||
|
5
frame.go
5
frame.go
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user