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)