Improvements to TextBox and ContainerBox

This commit is contained in:
Sasha Koshka 2023-07-12 18:36:11 -04:00
parent 069b8898f3
commit 34ca98f865
7 changed files with 77 additions and 33 deletions

15
box.go
View File

@ -70,6 +70,10 @@ func (this *box) InnerBounds () image.Rectangle {
return this.padding.Apply(this.innerClippingBounds()) return this.padding.Apply(this.innerClippingBounds())
} }
func (this *box) MinimumSize () image.Point {
return this.minSize
}
func (this *box) innerClippingBounds () image.Rectangle { func (this *box) innerClippingBounds () image.Rectangle {
innerBounds := this.bounds innerBounds := this.bounds
for _, border := range this.border { for _, border := range this.border {