Add scaling to scoredisplay
This commit is contained in:
parent
486b98ce11
commit
69d35df6a4
@ -98,6 +98,12 @@ func (sd *ScoreDisplay) Refresh() {
|
||||
sd.BaseWidget.Refresh()
|
||||
}
|
||||
|
||||
func (sd *ScoreDisplay) Resize(size fyne.Size) {
|
||||
if sd.fixedSize != nil {
|
||||
sd.fixedSize = &size
|
||||
}
|
||||
}
|
||||
|
||||
func (sd *ScoreDisplay) Size() fyne.Size {
|
||||
if sd.layout == nil {
|
||||
if sd.fixedSize != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user