mirror of https://github.com/anoshenko/rui.git
Merge pull request #7 from anoshenko/feature/fix-view-radius-setting
This commit is contained in:
commit
ff6b7c7e67
|
@ -592,8 +592,8 @@ func (radius *radiusPropertyData) Set(tag string, value any) bool {
|
||||||
case string:
|
case string:
|
||||||
if strings.Contains(value, "/") {
|
if strings.Contains(value, "/") {
|
||||||
if values := strings.Split(value, "/"); len(values) == 2 {
|
if values := strings.Split(value, "/"); len(values) == 2 {
|
||||||
xOK := radius.Set(tag+"-x", value[0])
|
xOK := radius.Set(tag+"-x", values[0])
|
||||||
yOK := radius.Set(tag+"-y", value[1])
|
yOK := radius.Set(tag+"-y", values[1])
|
||||||
return xOK && yOK
|
return xOK && yOK
|
||||||
} else {
|
} else {
|
||||||
notCompatibleType(tag, value)
|
notCompatibleType(tag, value)
|
||||||
|
|
Loading…
Reference in New Issue