Fixed CoreControl background drawing behavior

... But found a bug with the border pattern
This commit is contained in:
2023-04-02 22:16:12 -04:00
parent 6ede0d0770
commit 6c3230c0f8
2 changed files with 12 additions and 1 deletions

View File

@@ -140,7 +140,7 @@ func (control CoreControl) DrawBackgroundBounds (
if ok {
parent.DrawBackground(bounds)
} else if fallback != nil {
fallback.Draw(control, bounds)
fallback.Draw(canvas.Cut(control, bounds), control.Bounds())
}
}