Skip to content

Commit

Permalink
Fix for new ScrollDirection alias@
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Feb 1, 2025
1 parent 287e6fd commit d06e590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gui/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ func decodeFields(e reflect.Value, in map[string]interface{}) error {
typeName := f.Type().String()
switch typeName {
case "fyne.TextAlign", "fyne.TextTruncation", "fyne.TextWrap", "widget.ButtonAlign", "widget.ButtonImportance",
"widget.ButtonIconPlacement", "widget.Importance", "widget.Orientation", "widget.ScrollDirection":
"widget.ButtonIconPlacement", "widget.Importance", "widget.Orientation", "widget.ScrollDirection", "fyne.ScrollDirection":
f.SetInt(int64(reflect.ValueOf(v).Float()))
case "fyne.TextStyle":
f.Set(reflect.ValueOf(decodeTextStyle(reflect.ValueOf(v).Interface().(map[string]interface{}))))
Expand Down

0 comments on commit d06e590

Please sign in to comment.