forked from mbk-lab/rui_orig
2
0
Fork 0

Bug fixing

This commit is contained in:
Alexei Anoshenko 2022-09-06 09:57:33 +03:00
parent 2f7e1bbab3
commit a9e0b246d5
1 changed files with 2 additions and 0 deletions

View File

@ -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 {