Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
roffe committed Dec 7, 2024
1 parent d327f23 commit de529f9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion WHATSNEW.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 0 additions & 2 deletions pkg/dashboard/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,6 @@ func (dr *DashboardRenderer) Destroy() {
}

func (dr *DashboardRenderer) Objects() []fyne.CanvasObject {

cont := []fyne.CanvasObject{
dr.db.limpMode,
//db.dbgBar,
Expand Down Expand Up @@ -777,6 +776,5 @@ func (dr *DashboardRenderer) Objects() []fyne.CanvasObject {
} else {
cont = append(cont, dr.db.text.time)
}

return cont
}
5 changes: 1 addition & 4 deletions pkg/plotter/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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))
}
Expand Down

0 comments on commit de529f9

Please sign in to comment.