fix(app): persist view after Fit / mindmap auto-fit #29
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_whiteboard!29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fit_persist_view"
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?
Summary
Fix for issue #28: clicking the Fit toolbar button recenters and rescales the stage but never persists the result, so reload brought the board back to the last wheel/drag-saved view instead of the fitted view. Same fix for
fitMindmapToView.Related Issue
Closes #28
Changes
crates/hero_whiteboard_ui/static/web/js/whiteboard/app.jszoomReset: addedWhiteboardCanvas.saveView()at all three exit points (empty-board path, empty-bounding-box path, and the normal fit path).fitMindmapToView: addedWhiteboardCanvas.saveView()after the stage mutation.Test Results
cargo check --workspace: passcargo clippy --workspace -- -D warnings: passcargo fmt --check: passVanilla-JS change; needs manual verification in the browser.
Manual verification