forked from mbk-lab/rui_orig
Bug fixing
This commit is contained in:
parent
2f7e1bbab3
commit
a9e0b246d5
|
@ -46,6 +46,8 @@ func (style *viewStyle) setGridCellSize(tag string, value any) bool {
|
||||||
val = strings.Trim(val, " \t\n\r")
|
val = strings.Trim(val, " \t\n\r")
|
||||||
if isConstantName(val) {
|
if isConstantName(val) {
|
||||||
sizes[i] = 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 {
|
} else if size, err := stringToSizeUnit(val); err == nil {
|
||||||
sizes[i] = size
|
sizes[i] = size
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue