mirror of
https://github.com/jroimartin/gocui.git
synced 2025-05-01 22:17:55 +08:00
missed a spot
This commit is contained in:
parent
46492ecf92
commit
bf2ef335f9
4
gui.go
4
gui.go
@ -786,6 +786,10 @@ func calcRealScrollbarStartEnd(v *View) (bool, int, int) {
|
|||||||
height := v.InnerHeight() + 1 - v.scrollMargin()
|
height := v.InnerHeight() + 1 - v.scrollMargin()
|
||||||
fullHeight := v.ViewLinesHeight()
|
fullHeight := v.ViewLinesHeight()
|
||||||
|
|
||||||
|
if v.CanScrollPastBottom {
|
||||||
|
fullHeight += height
|
||||||
|
}
|
||||||
|
|
||||||
if height < 2 || height >= fullHeight {
|
if height < 2 || height >= fullHeight {
|
||||||
return false, 0, 0
|
return false, 0, 0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user