From 5d4a26a8771a9faf7fc58b402ea77e3ae128d209 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 10 Mar 2023 13:45:53 -0500 Subject: [PATCH] AnalogClock is no longer flexible. --- elements/fun/clock.go | 9 --------- examples/goroutines/main.go | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/elements/fun/clock.go b/elements/fun/clock.go index 00861ab..e2c3677 100644 --- a/elements/fun/clock.go +++ b/elements/fun/clock.go @@ -84,15 +84,6 @@ func (element *AnalogClock) draw () { element.radialLine(accent, 0, 0.7, (second - 15) / 30 * math.Pi) } -// FlexibleHeightFor constrains the clock's minimum size to a 1:1 aspect ratio. -func (element *AnalogClock) FlexibleHeightFor (width int) (height int) { - return width -} - -// OnFlexibleHeightChange sets a function to be called when the parameters -// affecting the clock's flexible height change. -func (element *AnalogClock) OnFlexibleHeightChange (func ()) { } - func (element *AnalogClock) radialLine ( source color.RGBA, inner float64, diff --git a/examples/goroutines/main.go b/examples/goroutines/main.go index 0a383d1..16992c1 100644 --- a/examples/goroutines/main.go +++ b/examples/goroutines/main.go @@ -14,7 +14,7 @@ func main () { } func run () { - window, _ := tomo.NewWindow(2, 2) + window, _ := tomo.NewWindow(200, 216) window.SetTitle("Clock") container := basicElements.NewContainer(basicLayouts.Vertical { true, true }) window.Adopt(container)