diff --git a/WHATSNEW.md b/WHATSNEW.md index 9e318c8..3a73c8e 100644 --- a/WHATSNEW.md +++ b/WHATSNEW.md @@ -1,6 +1,6 @@ # 1.0.20 - - Reworked legend to have fixed a more "fixed size" and value to the left + - Reworked legend to have a more "fixed size" and value moved to the left # 1.0.19 diff --git a/pkg/dashboard/dashboard.go b/pkg/dashboard/dashboard.go index 7c7e33e..95955c9 100644 --- a/pkg/dashboard/dashboard.go +++ b/pkg/dashboard/dashboard.go @@ -742,7 +742,6 @@ func (dr *DashboardRenderer) Destroy() { } func (dr *DashboardRenderer) Objects() []fyne.CanvasObject { - cont := []fyne.CanvasObject{ dr.db.limpMode, //db.dbgBar, @@ -777,6 +776,5 @@ func (dr *DashboardRenderer) Objects() []fyne.CanvasObject { } else { cont = append(cont, dr.db.text.time) } - return cont } diff --git a/pkg/plotter/text.go b/pkg/plotter/text.go index 756d84b..151d6e8 100644 --- a/pkg/plotter/text.go +++ b/pkg/plotter/text.go @@ -132,9 +132,7 @@ func (tt *TappableText) TappedSecondary(*fyne.PointEvent) { } func (tt *TappableText) CreateRenderer() fyne.WidgetRenderer { - return &TappableTextRenderer{ - t: tt, - } + return &TappableTextRenderer{tt} } type TappableTextRenderer struct { @@ -146,7 +144,6 @@ func (tr *TappableTextRenderer) Layout(size fyne.Size) { return } tr.t.oldSize = size - tr.t.value.Move(fyne.NewPos(0, 0)) tr.t.text.Move(fyne.NewPos(60, 0)) }