Improvements to TextBox and ContainerBox
This commit is contained in:
parent
069b8898f3
commit
34ca98f865
15
box.go
15
box.go
@ -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 {
|
||||||