inheritFrom not always updating #850

Open
opened 2026-02-20 10:21:04 -05:00 by deekerman · 1 comment
Owner

Originally created by @ArnoldSmith86 on GitHub (Dec 5, 2024).

{
  "type": "button",
  "id": "jjv7",

  "y": 343,

  "inheritFrom": {
    "jjv6": [
      "x"
    ]
  }
}

Changing x to parent doesn't reset x to 0 immediately.

Originally created by @ArnoldSmith86 on GitHub (Dec 5, 2024). ```JSON { "type": "button", "id": "jjv7", "y": 343, "inheritFrom": { "jjv6": [ "x" ] } } ``` Changing `x` to `parent` doesn't reset `x` to 0 immediately.
Author
Owner

@bjalder26 commented on GitHub (Dec 5, 2024):

So basically, in inheritFrom when changing to inheriting the parent, the default x and y need to be applied? Also, it seems like when changing FROM inheritFrom parent, to not inheriting the parent, the new parenting (none) needs to be applied. It seems like it is an issue with defaults.

@bjalder26 commented on GitHub (Dec 5, 2024): So basically, in inheritFrom when changing to inheriting the parent, the default x and y need to be applied? Also, it seems like when changing FROM inheritFrom parent, to not inheriting the parent, the new parenting (none) needs to be applied. It seems like it is an issue with defaults.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/virtualtabletop#850
No description provided.