From bf464200bc39ba83b8272d05812c88bb9430bd67 Mon Sep 17 00:00:00 2001 From: Frank Braun Date: Thu, 19 Apr 2018 15:49:26 +0000 Subject: [PATCH] Documentation fix for flex.AddItem() The proportion must be at least 1 if fixedSize == 0. --- flex.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flex.go b/flex.go index ec428bd..5648b4a 100644 --- a/flex.go +++ b/flex.go @@ -69,8 +69,8 @@ func (f *Flex) SetFullScreen(fullScreen bool) *Flex { // that its size is flexible and may be changed. The "proportion" argument // defines the relative size of the item compared to other flexible-size items. // For example, items with a proportion of 2 will be twice as large as items -// with a proportion of 1. Must be at least 1 if fixedSize > 0 (ignored -// otherwise) +// with a proportion of 1. The proportion must be at least 1 if fixedSize == 0 +// (ignored otherwise). // // If "focus" is set to true, the item will receive focus when the Flex // primitive receives focus. If multiple items have the "focus" flag set to