// return width and height based on menu items
return width and height based on menu items
// return width and height based on menu items
func calcSize(items []string) (w, h int) {
	h = len(items) + (padding * 2)
	w = minWidth
	for _, s := range items {
		if len(s) > w {
			w = len(s)
		}
	}
	w += (padding * 2)
	return w, h
}
func calcSize ( items [ ] string ) ( w , h int ) { h = len ( items ) + ( padding * 2 ) w = minWidth for _ , s := range items { if len ( s ) > w { w = len ( s ) } } w += ( padding * 2 ) return w , h }
return width and height based on menu items
return width and height based on menu items