fixed size calculation in BorderView
This commit is contained in:
parent
109e2a9efd
commit
a9f9a2e38d
@ -101,9 +101,9 @@ func (v *BorderView) Layout() (prefWidth, prefHeight int) {
|
|||||||
|
|
||||||
for side, border := range v.ShowBorder {
|
for side, border := range v.ShowBorder {
|
||||||
if border {
|
if border {
|
||||||
if side.Horizontal() {
|
if side.Horizontal() && w >= 0 {
|
||||||
w++
|
w++
|
||||||
} else if side.Vertical() {
|
} else if side.Vertical() && h >= 0 {
|
||||||
h++
|
h++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user