From a9e0b246d5c57fc8fc3d5ab6b4a9ea7bebca5998 Mon Sep 17 00:00:00 2001 From: Alexei Anoshenko Date: Tue, 6 Sep 2022 09:57:33 +0300 Subject: [PATCH] Bug fixing --- gridLayout.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gridLayout.go b/gridLayout.go index 384e72b..674d561 100644 --- a/gridLayout.go +++ b/gridLayout.go @@ -46,6 +46,8 @@ func (style *viewStyle) setGridCellSize(tag string, value any) bool { val = strings.Trim(val, " \t\n\r") if isConstantName(val) { sizes[i] = val + } else if fn := parseSizeFunc(val); fn != nil { + sizes[i] = SizeUnit{Type: SizeFunction, Function: fn} } else if size, err := stringToSizeUnit(val); err == nil { sizes[i] = size } else {