mirror of
https://github.com/ArnoldSmith86/virtualtabletop.git
synced 2026-03-02 22:57:02 -05:00
setting stackOffsetX from 0 to 40 offsets the cards inside the pile #835
Labels
No labels
PCIO compatibility
Validator
automated testing
bug
documentation
duplicate
editor
enhancement
enhancement
library
library
maintenance
needs legacy server
pile related
reported client crash
routine operations
user interface
widget properties
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/virtualtabletop#835
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ArnoldSmith86 on GitHub (Sep 22, 2024).
QuickDownload without assets 2024-09-22 2003 - Unnamed.vtt.zip
Click
Offset 40in the top right.It doesn't do anything in
hand.Also: setting it back to
0doesn't do anything.@bjalder26 commented on GitHub (Oct 26, 2024):
It looks like these are the related functions in holder.js:
stackOffsetX: 0 evaluates as a null value, so !this.get('stackOffsetX') will evaluate as true in updateAfterShuffle() and it will just return rather than updating.
I'm not sure how the piles should behave when stackOffsetX or stackOffsetY are updated, but it looks like currently they don't break the pile (and reset the parent to the holder) and they offset cards from the pile.
It seems like the workaround for this would be to preventPiles on the holder, then set the stackOffsetY to 0.0000001.